How to install Android SDK on Ubuntu?

前端 未结 7 1161
予麋鹿
予麋鹿 2020-12-22 18:24

For my Ubuntu machine, I downloaded the latest version of Android SDK from this page.

After extracting the downloaded .tgz file, I was trying to search for installati

7条回答
  •  青春惊慌失措
    2020-12-22 19:17

    If you are on Ubuntu 17.04 (Zesty), and you literally just need the SDK (no Android Studio), you can install it like on Debian:

    • sudo apt install android-sdk android-sdk-platform-23
    • export ANDROID_HOME=/usr/lib/android-sdk
    • In build.gradle, change compileSdkVersion to 23 and buildToolsVersion to 24.0.0
    • run gradle build

提交回复
热议问题