However, files in Chromium are used amongst multiple targets. Gradle supports source directories but not source files. This can be very slow when used with -all by default. This will generate one module for every gn target in the dependency graph. To see more detailed structure of gn targets, the -split-projects flag can be used. If just one apk target is explicitly specified, then a single apk module is generated. File -> “Invalidate Caches / Restart.”īy default, only an _all module containing all java apk targets is generated.After gn clean you may need to restart Android Studio.Help -> Find Action -> “Sync Project with Gradle Files”.Button with two arrows on the right side of the top strip.File -> “Sync Project with Gradle Files”.If it doesn't, try some of the following options: After regenerating, Android Studio should prompt you to “Sync”.Pass -canary or -beta to avoid the “A newer version of gradle is available” notification. You need to re-run generate_gradle.py whenever BUILD.gn files change. If you‘re asked to use Studio’s Gradle wrapper: Yes. If you‘re asked to use Studio’s Android SDK: No. See android_test_instructions.md for more information about building and running emulators. Use “Import Project”, and select the directory containing the generated project, e.g.The above commands create a project dir gradle under your output directory. build / android / gradle / generate_gradle. Make sure you have followed android build instructions already.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |