| OLD | NEW |
| 1 # Android Studio | 1 # Android Studio |
| 2 | 2 |
| 3 [TOC] | 3 [TOC] |
| 4 | 4 |
| 5 ## Usage | 5 ## Usage |
| 6 | 6 |
| 7 ```shell | 7 ```shell |
| 8 build/android/gradle/generate_gradle.py --output-directory out-gn/Debug --target
//chrome/android:chrome_public_test_apk | 8 build/android/gradle/generate_gradle.py --output-directory out-gn/Debug |
| 9 ``` | 9 ``` |
| 10 | 10 |
| 11 This creates a project at `out-gn/Debug/gradle`. To create elsewhere: `--project
-dir foo` | 11 This creates a project at `out-gn/Debug/gradle`. To create elsewhere: |
| 12 |
| 13 ```shell |
| 14 build/android/gradle/generate_gradle.py --output-directory out-gn/Debug --projec
t-dir my-project |
| 15 ``` |
| 16 |
| 17 By default, only common targets are generated. To customize the list of targets |
| 18 to generate projects for: |
| 19 |
| 20 ```shell |
| 21 build/android/gradle/generate_gradle.py --output-directory out-gn/Debug --target
//some:target_apk --target //some/other:target_apk |
| 22 ``` |
| 12 | 23 |
| 13 For first-time Android Studio users: | 24 For first-time Android Studio users: |
| 14 | 25 |
| 15 * Avoid running the setup wizard. | 26 * Avoid running the setup wizard. |
| 16 * The wizard will force you to download unwanted SDK components to `//third_
party/android_tools`. | 27 * The wizard will force you to download unwanted SDK components to `//third_
party/android_tools`. |
| 17 * To skip it, select "Cancel" when it comes up. | 28 * To skip it, select "Cancel" when it comes up. |
| 18 | 29 |
| 19 To import the project: | 30 To import the project: |
| 20 | 31 |
| 21 * Use "Import Project", and select the directory containing the generated proje
ct. | 32 * Use "Import Project", and select the directory containing the generated proje
ct. |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 105 |
| 95 ### What doesn't work (yet) ([crbug](https://bugs.chromium.org/p/chromium/issues
/detail?id=620034)) | 106 ### What doesn't work (yet) ([crbug](https://bugs.chromium.org/p/chromium/issues
/detail?id=620034)) |
| 96 | 107 |
| 97 * JUnit Test targets | 108 * JUnit Test targets |
| 98 * Better support for instrumtation tests (they are treated as non-test .apks ri
ght now) | 109 * Better support for instrumtation tests (they are treated as non-test .apks ri
ght now) |
| 99 * Make gradle aware of resources and assets | 110 * Make gradle aware of resources and assets |
| 100 * Make gradle aware of native code via pointing it at the location of our .so | 111 * Make gradle aware of native code via pointing it at the location of our .so |
| 101 * Add a mode in which gradle is responsible for generating `R.java` | 112 * Add a mode in which gradle is responsible for generating `R.java` |
| 102 * Add support for native code editing | 113 * Add support for native code editing |
| 103 * Make the "Make Project" button work correctly | 114 * Make the "Make Project" button work correctly |
| OLD | NEW |