建立專案
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Android Studio for Platform 可讓您輕鬆在 Android 開放原始碼計畫上進行開發。本頁面說明如何在 Android Studio for Platform 中啟動新的 Android 平台專案,或匯入現有專案。
如果尚未開啟專案,請在 Android Studio for Platform 歡迎畫面中按一下「New」,建立新專案。

如果已開啟專案,請依序選取「ASfP」>「Project」>「New Project...」,建立新專案。
以下範例會匯入 frameworks/native
和 platform_testing/tests/example/devcodelab
:

- 指定存放區結帳的路徑。
- 指定午餐目標。
- 列出要納入專案的模組路徑。如要匯入多個模組,請以半形逗號分隔。例如:
frameworks/native,platform_testing/tests/example/devcodelab
。
- 指定專案名稱。
- 按一下「Finish」。
匯入現有專案
如要將現有的本機專案匯入 Android Studio for Platform,請按照下列步驟操作:
- 依序點選「ASfP」>「Project」>「New Project...」。
- 在出現的視窗中,前往要匯入的專案根目錄。
- 按一下「OK」。
Android Studio for Platform 會在新 IDE 視窗中開啟專案,並為其內容建立索引。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-08-27 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-08-27 (世界標準時間)。"],[],[],null,["Android Studio for Platform makes it easy to develop on the\n[Android Open Source Project](https://source.android.com/). This page explains\nhow to start a new Android platform project or import an existing project in\nAndroid Studio for Platform.\n\nIf you don't have a project opened, create a new project by clicking **New**\non the Android Studio for Platform welcome screen.\n\nIf you do have a project opened, create a new project by selecting **ASfP \\\u003e\nProject \\\u003e New Project...**\n\nConfigure your Project\n\nHere is an example that imports `frameworks/native` and\n`platform_testing/tests/example/devcodelab`:\n\n1. Specify the **path to your repo checkout**.\n2. Specify your **lunch target**.\n3. List the **module paths** you want to include in your project Import multiple modules by separating them with commas. For example: `frameworks/native,platform_testing/tests/example/devcodelab`.\n4. Specify a **project name**.\n5. Click **Finish**.\n\nImport an existing Project\n\nTo import an existing local project into Android Studio for Platform:\n\n1. Click **ASfP \\\u003e Project \\\u003eNew Project...**\n2. In the window that appears, navigate to the root directory of the project. you want to import\n3. Click **OK**.\n\nAndroid Studio for Platform opens the project in a new IDE window and\nindexes its contents."]]