I am developing Android application using Ionic framework (Ionic is built on top of Apache Cordova). When I try to build my app, I get an error, which states that build tools are missing.
Error:
> No installed build tools found. Install the Android build tools version 19.1.0 or higher.
I am using windows, and I have Android SDK tools installed (at C:\\tools), also I have used sdkmanager to install platform-tools (at C:\\platform-tools) and android26 and android27 platforms (at C:\\platforms\\android-26 and C:\\platforms\\android-27).
My ANDROID_HOME enviroment variable is set to C:\\tools and I have included all of the following locations in my path:
I believe I am missing something, what do I have to do/fix for my build to succeedd. What are those build tools that I do not have installed?
You have set "ANDROID_HOME" to your sdk tools folder. This is causing an error in the relative navigation used by Cordova.
Solution: Create a new folder "SDK" in your C drive as such C:\\SDK
. Now add all of the sdk stuff into that directory. Finally, change your "ANDROID_HOME" path to C:\\SDK
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.