weex icon indicating copy to clipboard operation
weex copied to clipboard

weex run android提示Environment variable $ANDROID_HOME not found

Open qq511340079 opened this issue 9 years ago • 5 comments

在项目下执行weex run android的时候提示 Environment variable $ANDROID_HOME not found You should set $ANDROID_HOME first 我已经把ANDRID_HOME配置到sdk目录了呀!

qq511340079 avatar Jun 27 '17 16:06 qq511340079

Open the terminal and type :

export ANDROID_HOME=/Applications/ADT/sdk Add this to the PATH environment variable

export PATH=$PATH:$ANDROID_HOME/bin If the terminal doesn't locate the added path(s) from the .bash_profile, please run this command

source ~/.bash_profile

Hope it works to you!

766 avatar Jun 28 '17 07:06 766

please help! i have the same issue on windows, im using visual code, when i run the command: weex run android.
resulte: Environment variable $ANDROID_HOME not found ! You should set ANDROID_HOME in your environment first. See https://spring.io/guides/gs/android/ 'adb' is not recognized as an internal or external command, operable program or batch file. 'adb' is not recognized as an internal or external command, operable program or batch file. The batch file cannot be found.

mhpm avatar Mar 25 '18 00:03 mhpm

@mhpm Just restart command prompt after adding paths. Also set adb to custom in genymotion if you are using it.

sudarshanc avatar Sep 09 '18 15:09 sudarshanc

This PR/issue doesn't received response since Weex migrated to Apache two years ago and this repository is no longer active yet.

Feel free to ask question in new repository and thanks for your contribution.

YorkShen avatar Feb 18 '19 11:02 YorkShen

This issue is outdated for a long time and will be closed now. You can create a new one if you still have questions.

Hanks10100 avatar May 16 '21 10:05 Hanks10100