ionic build Android | error: No installed build tools found. Please install the Android build tools

后端 未结 27 3469
被撕碎了的回忆
被撕碎了的回忆 2020-11-28 05:25

When I run ionic build android command in root of ionic project, I am getting this error:

FAILURE: Build failed with an exception.

27条回答
  •  渐次进展
    2020-11-28 05:55

    Mac IOS

    Edit ~/.bash_profile by using vi or other shell editor

    vi ~/.bash_profile
    

    Add the following lines:

    export ANDROID_HOME=~/Library/Android/sdk
    export PATH=${PATH}:~/Software/android-sdk-macosx/tools:~/Software/android-sdk-macosx/platform-tools"
    

    (save the file, and exit) load those updated env variables to the current shell env:

    . ~/.bash_profile
    
    • If from some reason you have an old version of the build tools, you can update them from the android development studio:
    • Configure --> SDK Manager --> select "Android SDK Build-Tools
    • Check the "Show Package details"
    • review the versions of this package, update if needed

提交回复
热议问题