Android Full Support
Provide building, linting, syntax highlighting,run,autocomplete,symbol hover,go to implementation and more for Android native development.
Getting Started
- Ctrl + Shift + P
- Android : New Project
- Choose app name.
- Choose package name.
- Done ! ✅
Installation (VS Code)
- Download and install the JDK.
- Download Android SDK Tools and install platform-tools, build tools and at least one version of android api.
- Download and install this extension.
- Ready to go.
Features
Run app
(You must be already connected with adb to a device. Launching emulator coming soon)
- Ctrl + Shift + P
- Android : Install on device.
Manage Android SDK
- Ctrl + Shift + P
- Android : Manage SDK.
Syntax coloration
Syntax and symbol error (Java & Kotlin) / Lint / Type checking
Signature help
Snippet
Right click on folder.
Autocomplete / Intellisense
Ctrl + Space to force trigger.
Symbol goto
Explore all functions and var of your app from a single place.
- Ctrl + P
- # + symbol name
Information on function/variable
Hover symbol.
Find functions references
- Right click on function
- Find All References
- Left pane
Usefull settings
Name |
Content |
Variables |
Gradle Home |
Absolute path to gradle user folder. |
${HOMEDIR} : home directory of the user. |
Sdk Location |
Absolute path to the directory where android.jar is located. This setting traverse directory recursively. |
${ANDROID_SDK_ROOT} : environment variable ANDROID_SDK_ROOT |
Usefull commands
Ctrl + Space + P then ⬇️
- Android: Build debug apk ➡️ Build a debug APK.
- Android: Build release apk ➡️ Build a release APK.
- Android: Clean project ➡️ Clean project.
- Android: Install on device ➡️ Install app on device(via adb) or on a running emulator.
- Android: Manage SDK ➡️ Open SDk Manager GUI.
F.A.Q
Why there is an error message during intialisation ?
One of component of android sdk may be missing.
Which minimum android tools is required ?
Old version are suported too. The only requirements is to have adb,zipalign,android.jar,apksigner in ANDROID_SDK_ROOT.
Where are the logs
In Android output.
Issues and request
You can report issues here : https://gitreports.com/issue/AntonyDalmiere/android-support-vscode.
TODO
- Fix bug in kotlin language server.
- Make starter project avaible for Kotlin.
- Choose target API when creating a new project.
- Launch emulator when executing running on device command.
- Modify manifest when editing application component.
- UI editor.
- Logcat