Projects overview
Stay organized with collections
Save and categorize content based on your preferences.
A project in Android Studio for Platform contains everything that defines
your workspace for your AOSP codebase, from source code and assets to test
code and build configurations.
When you start a new project, Android Studio for Platform creates the necessary
structure for all your files and makes them visible in the Project window in
Android Studio. To open the window, select View > Tool Windows > Project.
This page provides an overview of the key components inside your project.
Managing your project (asfp-config.json
)
asfp-config.json
is a JSON file that contains all the configuration options
for your project. It is located in the root of your project directory.
Editing modules or your lunch target
Your initial module paths from project creation are stored in
asfp-config.json
. Simply add (or remove) modules to this file and save,
which should pop up a notification balloon prompting you to sync.
"modulePaths" : [
"frameworks/base",
"packages/apps/Settings",
"add additional module paths here..."
],
Disabling native support
To customize native support for your project:
"nativeConfig" : {
"excludePaths" : ["*"],
"excludeGenPaths" : ["*"]
}
excludePaths
: All paths here will be completely excluded from native
support.
excludeGenPaths
: All paths here won't have native generated sources.
Note that you can use the wildcard (*
) symbol to indicate all paths
in the repo checkout.
Sync parameters
Sync accepts user-defined build (m
command) flags and environment
variables. These can be configured in asfp-config.json
via:
"syncConfig" : {
"environmentVars" : {
"a": "1",
"b": "2"
},
"buildFlags" : [
"--u=v",
"-x"
]
}
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-08-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-26 UTC."],[],[],null,["# Projects overview\n\nA project in Android Studio for Platform contains everything that defines\nyour workspace for your AOSP codebase, from source code and assets to test\ncode and build configurations.\n\nWhen you start a new project, Android Studio for Platform creates the necessary\nstructure for all your files and makes them visible in the Project window in\nAndroid Studio. To open the window, select View \\\u003e Tool Windows \\\u003e Project.\n\nThis page provides an overview of the key components inside your project.\n\nManaging your project (`asfp-config.json`)\n------------------------------------------\n\n`asfp-config.json` is a JSON file that contains all the configuration options\nfor your project. It is located in the root of your project directory.\n\n### Editing modules or your lunch target\n\nYour initial module paths from project creation are stored in\n`asfp-config.json`. Simply add (or remove) modules to this file and save,\nwhich should pop up a notification balloon prompting you to sync. \n\n \"modulePaths\" : [\n \"frameworks/base\",\n \"packages/apps/Settings\",\n \"add additional module paths here...\"\n ],\n\n### Disabling native support\n\nTo customize native support for your project: \n\n \"nativeConfig\" : {\n \"excludePaths\" : [\"*\"],\n \"excludeGenPaths\" : [\"*\"]\n }\n\n- `excludePaths`: All paths here will be completely excluded from native support.\n- `excludeGenPaths`: All paths here won't have native generated sources.\n\nNote that you can use the wildcard (**`*`**) symbol to indicate all paths\nin the repo checkout.\n\n### Sync parameters\n\nSync accepts user-defined build (`m` command) flags and environment\nvariables. These can be configured in `asfp-config.json` via: \n\n \"syncConfig\" : {\n \"environmentVars\" : {\n \"a\": \"1\",\n \"b\": \"2\"\n },\n \"buildFlags\" : [\n \"--u=v\",\n \"-x\"\n ]\n }"]]