Android: Update docs for auto import.
Android studio requires additional configuration to enable automatic imports on the fly. Also fix some markdown formatting, 4-space tabs necessary for sublists. BUG=667858 Review-Url: https://codereview.chromium.org/2530903003 Cr-Commit-Position: refs/heads/master@{#434370}
This commit is contained in:
@@ -34,7 +34,7 @@ To import the project:
|
|||||||
You need to re-run `generate_gradle.py` whenever `BUILD.gn` files change.
|
You need to re-run `generate_gradle.py` whenever `BUILD.gn` files change.
|
||||||
|
|
||||||
* After regenerating, Android Studio should prompt you to "Sync". If it doesn't, use:
|
* After regenerating, Android Studio should prompt you to "Sync". If it doesn't, use:
|
||||||
* Help -> Find Action -> Sync Project with Gradle Files
|
* Help -> Find Action -> "Sync Project with Gradle Files"
|
||||||
|
|
||||||
|
|
||||||
## How it Works
|
## How it Works
|
||||||
@@ -71,8 +71,11 @@ includes `R.java`).
|
|||||||
* Launch it with more RAM: `STUDIO_VM_OPTIONS=-Xmx2048m /opt/android-studio-stable/bin/studio-launcher.sh`
|
* Launch it with more RAM: `STUDIO_VM_OPTIONS=-Xmx2048m /opt/android-studio-stable/bin/studio-launcher.sh`
|
||||||
* If you ever need to reset it: `rm -r ~/.AndroidStudio*/`
|
* If you ever need to reset it: `rm -r ~/.AndroidStudio*/`
|
||||||
* Import Android style settings:
|
* Import Android style settings:
|
||||||
* Help -> Find Action -> Code Style -> Java -> Manage -> Import
|
* Help -> Find Action -> "Code Style" (settings) -> Java -> Manage -> Import
|
||||||
* Select `third_party/android_platform/development/ide/intellij/codestyles/AndroidStyle.xml`
|
* Select `third_party/android_platform/development/ide/intellij/codestyles/AndroidStyle.xml`
|
||||||
|
* Turn on automatic import:
|
||||||
|
* Help -> Find Action -> "Auto Import"
|
||||||
|
* Tick all the boxes under "Java" and change the dropdown to "All".
|
||||||
|
|
||||||
### Useful Shortcuts
|
### Useful Shortcuts
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user