Android command not found even PATH set

前端 未结 6 1374
南方客
南方客 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 01:59

    android: command not found error

    Solution for Linux and Mac:

    1) Export your Android Sdk path to the ANDROID_HOME variable

    $ export ANDROID_HOME=~/Android/Sdk (where ~/Android/Sdk is a full path to your Sdk folder)

    (change "~" to "$HOME" on Mac)

    2) Export Sdk tools to the PATH variable

    $ export PATH=$ANDROID_HOME/tools:$PATH

    That's it!

提交回复
热议问题