Android command not found even PATH set

前端 未结 6 1406
南方客
南方客 2021-01-05 01:24

hi i am using ubuntu 12.04. and in ~/.bashrc file I set following things

export ANDROID_HOME=/home/nilkash/Downloads/android-sdk-linux/platform-tools

6条回答
  •  失恋的感觉
    2021-01-05 02:15

    1) Check in System Settings -> Details, whether your Ubuntu is 32-bit or 64-bit

    2) If your Ubuntu is a 32-bit OS then run this sudo apt-get install libgl1-mesa-dev In case of 64-bit OS run this sudo apt-get install ia32-libs

    3) run this sudo apt-get install openjdk-6-jdk or better this sudo apt-get install openjdk-7-jdk

    4) Download SDK platform tools from here http://developer.android.com/sdk/index.html

    5) Unzip downloaded file "adt-bundle-linux-x86_64-20131030.zip" (you can have a little bit different name ;). But you should get folder contained two sub folder - sdk and eclipse

    6) Run this nautilus ~

    7) In opened window create folder 'android-sdk-linux'

    8) copy the all entire contents of folder sdk (from unzipped archive) to this new folder 'android-sdk-linux'

    9) try run this cd ~/android-sdk-linux/tools then this ./android. If you did all right you should see Android SDK Manager

    10) run this sudo gedit ~/.bashrc in opened editor add this in very top

    #AndroidDev PATH
    export PATH=${PATH}:~/android-sdk-linux/tools
    export PATH=${PATH}:~/android-sdk-linux/platform-tools
    

    11) save and close

    12) run exec bash then try run android

    13) give write permissions to android-sdk-linux folder

    Enjoy! ;)

提交回复
热议问题