As I attempted to create an APK using
ionic cordova build android
I suddenly encountered the following error message:
* What went wrong: A problem occurred evaluating root project 'android'.
No installed build tools found. Install the Android build tools version 19.1.0 or higher.
Despite having android build tools from various versions of Android Studio (2.1.1 - 22.0.0 - 23.0.0) and the latest version 26.0.1, this issue persists.
Here is the output of running cordova requirements
:
Requirements check results for android: Java JDK: installed 1.8.0 Android SDK: installed true Android target: not installed android: Command failed with exit code ENOENT Gradle: installed /Applications/Android Studio.app/Contents/gradle/gradle-3.2/bin/gradle Error: Some of requirements check failed
The AndroidManifest.xml
file shows the following uses sdk information:
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="25" />
Installed platforms: android 6.2.3