Issue
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:
- C:\tools
- C:\tools\bin
- C:\platform-tools
- C:\platforms
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?
Solution
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
Answered By - sansa
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.