Android command not found even PATH set

前端 未结 6 1371
南方客
南方客 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:20

    I tried

    sudo nano /etc/profile
    

    and appended these after the fi export JAVA_HOME=/usr/lib/jvm/java-8-oracle export ANDROID_HOME=/home/dev/Android/Sdk export PATH=$PATH:$JAVA_HOME/bin:$ANDROID_HOME/platform-tools:ANDROID_HOME/tools export JAVA_HOME export ANDROID_HOME

    and after saving the file

    exec bash
    

    these got my android command working, I had set PATH in .bashrc which was not working for me

    Hope It'll help somebody

提交回复
热议问题