Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error: could not find gradle wrapper within android sdk. might need to update your android sdk

Tags:

gradle

cordova

enter image description here build-tools is: android-5.1

platform-tools updated

my platforms are
android-5.1
android-17

like image 983
Arsan Nazarnia Avatar asked Jul 09 '15 06:07

Arsan Nazarnia


2 Answers

If you have Android Studio installed, try to copy the templates directory of Android Studio

C:\Program Files\Android\Android Studio\plugins\android\lib\templates 

to your android sdk tools directory:

C:\Android\sdk\tools 

This did the trick for me :)

like image 69
Nicolas Avatar answered Sep 24 '22 04:09

Nicolas


I had a similar problem with Android Studio running on a Mac.

I fixed it with the following commands:

cp -r /Applications/Android\ Studio.app/Contents/plugins/android/lib/templates ~/Library/Android/sdk/tools chmod a+x ~/Library/Android/sdk/tools/templates/gradle/wrapper/gradlew 
like image 39
robbie_c Avatar answered Sep 22 '22 04:09

robbie_c