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

After cordova added the android platform for the first time, when running the android project with android studio for the first time, it sometimes reported an error "ERROR: No installed build tools found. Install the Android build tools version 19.1.0 or higher.",

Solution:

1. Find CordovaLib/cordova.gradle in android,

2. Find "

String envVar = System.getenv("ANDROID_HOME")

Replace with: "

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

"//This is my sdk path

3. After the modification is completed, Sync Project with Gridle Files, and then it can be run on the phone.

Guess you like

Origin blog.csdn.net/yunxiang1224/article/details/106687640