ERROR: No installed build tools found. Install the Android build tools version 19.1.0 or higher.

cordova 在初次添加android platform后,初次用android studio运行其中的android项目,有时会报错“ERROR: No installed build tools found. Install the Android build tools version 19.1.0 or higher.”,

解决方式:

1. 在android中找到CordovaLib/cordova.gradle,

2. 查找“

String envVar = System.getenv("ANDROID_HOME")

替换为:“

String envVar="C:\\Program Files (x86)\\Android\\android-sdk";

”//这是自己的sdk路径

3. 修改完成,再Sync Project with Gridle Files,然后就能在手机运行了。

猜你喜欢

转载自blog.csdn.net/yunxiang1224/article/details/106687640
今日推荐