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

后端 未结 27 3580
被撕碎了的回忆
被撕碎了的回忆 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:50

    For me, the problem was that ANDROID_HOME was pointing to an old Android SDK path. After installing Android Studio, I had to update ~/.bash_profile accordingly for MAC (El Capitan)

    export ANDROID_HOME="/Users/corneliusparkin/Library/Android/sdk"

    Remember to re-start terminal or run this command after updating ~/.bash_profile

    source ~/.bash_profile

提交回复
热议问题