Android Studio for Platform makes it easy to develop on the Android Open Source Project. This page explains how to start a new Android platform project or import an existing project in Android Studio for Platform.
If you don't have a project opened, create a new project by clicking New on the Android Studio for Platform welcome screen.
If you do have a project opened, create a new project by selecting ASfP > Project > New Project...
Configure your Project
Here is an example that imports frameworks/native
and
platform_testing/tests/example/devcodelab
:
- Specify the path to your repo checkout.
- Specify your lunch target.
- 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
. - Specify a project name.
- Click Finish.
Import an existing Project
To import an existing local project into Android Studio for Platform:
- Click ASfP > Project >New Project...
- In the window that appears, navigate to the root directory of the project. you want to import
- Click OK.
Android Studio for Platform opens the project in a new IDE window and indexes its contents.