Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(322)

Unified Diff: docs/android_studio.md

Issue 2642833005: Android: Update android studio docs (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « docs/android_build_instructions.md ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: docs/android_studio.md
diff --git a/docs/android_studio.md b/docs/android_studio.md
index ee3a60252626f062d1891265ab759b60d2e4fc00..2a10aa7a8c89d39a08bbf66242405ea7f3a229f9 100644
--- a/docs/android_studio.md
+++ b/docs/android_studio.md
@@ -4,21 +4,23 @@
## Usage
+Make sure you have followed [android build instructions](android_build_instructions.md) already.
+
```shell
-build/android/gradle/generate_gradle.py --output-directory out-gn/Debug
+build/android/gradle/generate_gradle.py
```
-This creates a project at `out-gn/Debug/gradle`. To create elsewhere:
+This creates a project at `out/Debug/gradle`. To create elsewhere:
```shell
-build/android/gradle/generate_gradle.py --output-directory out-gn/Debug --project-dir my-project
+build/android/gradle/generate_gradle.py --output-directory out/My-Out-Dir --project-dir my-project
```
By default, only common targets are generated. To customize the list of targets
to generate projects for:
```shell
-build/android/gradle/generate_gradle.py --output-directory out-gn/Debug --target //some:target_apk --target //some/other:target_apk
+build/android/gradle/generate_gradle.py --target //some:target_apk --target //some/other:target_apk
```
For first-time Android Studio users:
@@ -107,18 +109,18 @@ resources, native libraries, etc.
* Use a [gradle daemon](https://docs.gradle.org/2.14.1/userguide/gradle_daemon.html) to speed up builds:
* Add the line `org.gradle.daemon=true` to `~/.gradle/gradle.properties`, creating it if necessary.
-## Status (as of Sept 21, 2016)
+## Status (as of Jan 19, 2017)
### What works
* Tested with Android Studio v2.2.
-* Basic Java editing and compiling works.
+* Java editing and gradle compile works.
+* Instrumentation tests included as androidTest.
+* Symlinks to existing .so files in jniLibs (doesn't generate them).
### What doesn't work (yet) ([crbug](https://bugs.chromium.org/p/chromium/issues/detail?id=620034))
-* Better support for instrumentation tests (they are treated as non-test .apks right now)
* Make gradle aware of resources and assets
-* Make gradle aware of native code via pointing it at the location of our .so
* Add a mode in which gradle is responsible for generating `R.java`
* Add support for native code editing
* Make the "Make Project" button work correctly
« no previous file with comments | « docs/android_build_instructions.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698