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

Side by Side Diff: docs/android_studio.md

Issue 2438883002: Add gradle-specific information to docs. (Closed)
Patch Set: Fix typo. Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 8 build/android/gradle/generate_gradle.py --output-directory out-gn/Debug
9 ``` 9 ```
10 10
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 * `Ctrl + F12`: Jump to method 83 * `Ctrl + F12`: Jump to method
84 * `Ctrl + G`: Jump to line 84 * `Ctrl + G`: Jump to line
85 * `Shift + F6`: Rename variable 85 * `Shift + F6`: Rename variable
86 * `Ctrl + Alt + O`: Organize imports 86 * `Ctrl + Alt + O`: Organize imports
87 * `Alt + Enter`: Quick Fix (use on underlined errors) 87 * `Alt + Enter`: Quick Fix (use on underlined errors)
88 88
89 ### Building from the Command Line 89 ### Building from the Command Line
90 90
91 Gradle builds can be done from the command-line after importing the project into 91 Gradle builds can be done from the command-line after importing the project into
92 Android Studio (importing into the IDE causes the Gradle wrapper to be added). 92 Android Studio (importing into the IDE causes the Gradle wrapper to be added).
93 This wrapper can also be used to invoke gradle commands.
93 94
94 cd $GRADLE_PROJECT_DIR && bash gradlew 95 cd $GRADLE_PROJECT_DIR && bash gradlew
95 96
96 The resulting artifacts are not terribly useful. They are missing assets, 97 The resulting artifacts are not terribly useful. They are missing assets,
97 resources, native libraries, etc. 98 resources, native libraries, etc.
98 99
100 * Use a [gradle daemon](https://docs.gradle.org/2.14.1/userguide/gradle_daemon. html) to speed up builds:
101 * Add the line `org.gradle.daemon=true` to `~/.gradle/gradle.properties`, cr eating it if necessary.
102
99 ## Status (as of Sept 21, 2016) 103 ## Status (as of Sept 21, 2016)
100 104
101 ### What works 105 ### What works
102 106
103 * Tested with Android Studio v2.2. 107 * Tested with Android Studio v2.2.
104 * Basic Java editing and compiling works. 108 * Basic Java editing and compiling works.
105 109
106 ### What doesn't work (yet) ([crbug](https://bugs.chromium.org/p/chromium/issues /detail?id=620034)) 110 ### What doesn't work (yet) ([crbug](https://bugs.chromium.org/p/chromium/issues /detail?id=620034))
107 111
108 * JUnit Test targets 112 * JUnit Test targets
109 * Better support for instrumtation tests (they are treated as non-test .apks ri ght now) 113 * Better support for instrumentation tests (they are treated as non-test .apks right now)
110 * Make gradle aware of resources and assets 114 * Make gradle aware of resources and assets
111 * Make gradle aware of native code via pointing it at the location of our .so 115 * Make gradle aware of native code via pointing it at the location of our .so
112 * Add a mode in which gradle is responsible for generating `R.java` 116 * Add a mode in which gradle is responsible for generating `R.java`
113 * Add support for native code editing 117 * Add support for native code editing
114 * Make the "Make Project" button work correctly 118 * Make the "Make Project" button work correctly
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698