Cordova gradle wrapper missing in android sdk

android, cordova, ibm-mobilefirst, sdk

Solution

If still not working then copy all file from gradle\wrapper from Android Studio installation folder

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

and paste it in your Android SDK gradle\wrapper then run same command.

E:\android-sdk\tools\templates\gradle\wrapper

Problem

I'm on windows7 x64, installed today's latest stable release of android sdk studio (through android studio bundle, since it's shipped together now apparently). I have properly configured the environment variables as you'll see above. This is what I get when issuing the following command ``` $ cordova build android ANDROID_HOME=G:\installs\Android\sdk JAVA_HOME=C:\Program Files\Java\jdk1.8.0_121 Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK. Looked here: G:\installs\Android\sdk\tools\templates\gradle\wrapper ``` And indeed, the "templates" directory doesn't even exist in my sdk install. I've already tried the suggestions (setting the right path, uninstall/reinstall) of this question here but nothing applies to my case, and I find that manually copying and pasting packages is not really a solution, since there's a package manager in place. If anybody has an answer as of today's android install, would be very much appreciated.

Original source

Related problems