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

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

    I have solved this issue by following steps:

    1. Go to cordova.gradle file (platform/android/cordovaLib/cordova.gradle)
    2. Search for getAndroidSdkDir() method
    3. Now simply replace System.getenv("ANDROID_HOME") with your real Android SDK path

提交回复
热议问题