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”.You'll need to re-run generate_gradle.py whenever new directories containing source files are added. After you accept Android Studio’s update actions the generate_gradle.py script will try to keep the newer versions when it is re-run. Since the same script needs to support various versions of Android Studio, the defaults may have lower version than the one recommended by your version of Android Studio. generate_gradle.py should have already set up a working version of the gradle wrapper and the android gradle plugin, as well as a default Android SDK location at ~/Android/Sdk. See android_test_instructions.md for more information about building and running emulators.įeel free to accept Android Studio‘s recommended actions. 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. |