Android ion run gradle line 64 error

I can compile earlier, but after I updated my cordova, something happened. I got this error.

FAILURE: Build failed with an exception. * Where: Script 'C:\Users\Jay\testproject\platforms\android\CordovaLib\cordova.grad le' line: 64 * What went wrong: A problem occurred evaluating root project 'android'. > No installed build tools found. Please install the Android build tools version 19.1.0 or higher. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. 

I downloaded all the necessary SDKs, what is the problem?

+2
source share
2 answers

I had the same problem and that is how I fixed it. I had build version 20, but still got this error:

No installed build tools found. Install tools for building Android version 19.1.0 or higher.

So, I created a directory called 20 in the build-tools directory and copied all the files from sdk\build-tools\android-4.4W\* to sdk\build-tools\20 . The problem has been fixed!

+1
source

You will need to do two basic things:

  1. Install Android Build Tools
  2. Make them available in your shell when running the ion launch command.

Installing build tools (version 19.1.0)

  • Android open source development studio
  • Go to: Settings β†’ SDK Manager β†’ select β€œAndroid SDK Build-Tools
  • check the box "Show package details" (bottom right)
  • look at the versions of this package, make sure that version 19.1 is selected - you can use a newer version, but 19.1.0 works.
  • Click Apply to make changes / install it.

Make build tools available in your shell

Edit ~ / .bash_profile with vi or another shell editor

 vi ~/.bash_profile 

Add the following lines:

 export ANDROID_HOME=~/Library/Android/sdk export PATH=${PATH}:~/Software/android-sdk-macosx/tools:~/Software/android-sdk-macosx/platform-tools" 

(save the file and exit). When editing the file, make sure that for each input these variables will be available, but since we are already in the active session, you need to make it available for the current env shell, do the following:

 . ~/.bash_profile 
0
source

All Articles