OLD | NEW |
1 # Android Studio | 1 # Android Studio |
2 | 2 |
3 [TOC] | 3 [TOC] |
4 | 4 |
5 ## Usage | 5 ## Usage |
6 | 6 |
7 Make sure you have followed | 7 Make sure you have followed |
8 [android build instructions](android_build_instructions.md) already. | 8 [android build instructions](android_build_instructions.md) already. |
9 | 9 |
10 ```shell | 10 ```shell |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 ## Android Studio Tips | 86 ## Android Studio Tips |
87 | 87 |
88 * Configuration instructions can be found | 88 * Configuration instructions can be found |
89 [here](http://tools.android.com/tech-docs/configuration). One suggestions: | 89 [here](http://tools.android.com/tech-docs/configuration). One suggestions: |
90 * Launch it with more RAM: | 90 * Launch it with more RAM: |
91 `STUDIO_VM_OPTIONS=-Xmx2048m /opt/android-studio-stable/bin/studio-launche
r.sh` | 91 `STUDIO_VM_OPTIONS=-Xmx2048m /opt/android-studio-stable/bin/studio-launche
r.sh` |
92 * If you ever need to reset it: `rm -r ~/.AndroidStudio*/` | 92 * If you ever need to reset it: `rm -r ~/.AndroidStudio*/` |
93 * Import Android style settings: | 93 * Import Android style settings: |
94 * Help -> Find Action -> "Code Style" (settings) -> Java -> | 94 * Help -> Find Action -> "Code Style" (settings) -> Java -> |
95 Manage -> Import | 95 Manage -> Import -> select "Intellij IDEA code style XML" -> OK |
96 * Select `tools/android/android_studio/ChromiumStyle.xml` | 96 * Select `tools/android/android_studio/ChromiumStyle.xml` |
97 * Turn on automatic import: | 97 * Turn on automatic import: |
98 * Help -> Find Action -> "Auto Import" | 98 * Help -> Find Action -> "Auto Import" |
99 * Tick all the boxes under "Java" and change the dropdown to "All". | 99 * Tick all the boxes under "Java" and change the dropdown to "All". |
100 * Turn on documentation on mouse hover: | 100 * Turn on documentation on mouse hover: |
101 * Help -> Find Action -> "Show quick documentation on mouse move" | 101 * Help -> Find Action -> "Show quick documentation on mouse move" |
102 * Turn on line numbers: | 102 * Turn on line numbers: |
103 * Help -> Find Action -> "Show line numbers" | 103 * Help -> Find Action -> "Show line numbers" |
104 | 104 |
105 ### Useful Shortcuts | 105 ### Useful Shortcuts |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 [here](/docs/android_debugging_instructions.md#Android-Studio)). | 145 [here](/docs/android_debugging_instructions.md#Android-Studio)). |
146 * Import resolution and refactoring across all modules. | 146 * Import resolution and refactoring across all modules. |
147 * Correct lint and AndroidManifest when only one target is specified. | 147 * Correct lint and AndroidManifest when only one target is specified. |
148 | 148 |
149 ### What doesn't work (yet) ([crbug](https://bugs.chromium.org/p/chromium/issues
/detail?id=620034)) | 149 ### What doesn't work (yet) ([crbug](https://bugs.chromium.org/p/chromium/issues
/detail?id=620034)) |
150 | 150 |
151 * Gradle being aware of assets. | 151 * Gradle being aware of assets. |
152 * Layout editor. | 152 * Layout editor. |
153 * Add support for native code editing. | 153 * Add support for native code editing. |
154 * Make the "Make Project" button work correctly. | 154 * Make the "Make Project" button work correctly. |
OLD | NEW |