Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK.
Looked here: /Library/Android/sdk/tools/templates/gradle/wrapper
I tried updating sdk using android update sdk -u
but still same error.
Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK.
Looked here: /Users/xxx/Library/Android/sdk/tools/templates/gradle/wrapper
My app is running fine on iOS and I just installed Android SDK etc to build on Android but now I’m having this error as well. My /Library/Android/sdk/tools/ doesn’t have a templates folder. Something wrong with my installations?
Where do you find a list of older tools? I need one for PC. Only thing I could find was a lot about how to do it in Android Studio which does not work.
EDIT: Ok just use “windows” in place of “macosx” to get the windows version.
0
down vote
None of the solutions worked for me as of today. My situation was that I got my Android studio updated. The most popular thing to replace the tools folder with the latest one wouldn’t work for me. Infact is not required in some cases.
npm update -g cordova
did the trick for me.
Then I removed the platform and added it again.
ionic platform remove android
ionic platform add android
This works for me in Ionic. I am sure cordova platform remove/add android will do the same stuff. Not tested though.
i am getting error while installation
add to body class: platform-android
ANDROID_HOME=C:\Users\IT\AppData\Local\Android\Sdk
JAVA_HOME=C:\Program Files\Java\jdk-9.0.1
Error: Requirements check failed for JDK 1.8 or greater
[ERROR] An error occurred while running cordova build android (exit code 1).