Hello Guys,
Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK.
Looked here: /Users/owais/Library/Android/sdk/tools/templates/gradle/wrapper
Whenever i run ionic build android the above error is generated. Anyone who has faced and solved the issue please let me know
Thanks
Have you installed the android SDK via android studio or the android SDK standalone installer?
Yes I have installed android SDK @kgaspar … also the paths are defines as you can see in the error message
Error: Could not find gradle wrapper within Android SDK . showing the error of gradle wrapper in android sdk… and when I go to the path given in error
Looked here: /Users/owais/Library/Android/sdk/tools/templates/gradle/wrapper
I actually could not find any template folder here
Yes I have installed android SDK @kgaspar … also the paths are defines as you can see in the error message
Error: Could not find gradle wrapper within Android SDK . showing the error of gradle wrapper in android sdk… and when I go to the path given in error
Looked here: /Users/owais/Library/Android/sdk/tools/templates/gradle/wrapper
I actually could not find any template folder here
Have you checked this thread here. It is the same problem as yours.
Ok I am trying this… Hope for the best
i had the same problem.i followed another answer on a post here and it worked
here s what i did:i downloaded sdk tools package https://dl.google.com/android/repository/tools_r25.2.3-windows.zip then you extract it to C:\Users\CURRENT_USER\AppData\Local\Android\sdk.
you 'll need to replace the current user.then build again.this worked for me
here’s the link to that post if you want to
https://forum.ionicframework.com/t/error-could-not-find-gradle-wrapper-within-android-sdk-might-need-to-update-yo-ur-android-sdk/22056
and check trisna1192 answer
Yes I am going to try the same one thanks @redamed92
You won’t need these hacky solutions any more, see my post over there:
Yeah It worked… Thankyou Dear
In case you are stuck with this issue in Ubuntu, please check a possible fix here:
Ubuntu 14.04 fix
Hi there,
I was suffering from this issue and the things I tried from above didn’t help me.
I ended up creating the templates directory and copying the gradle wrapper from an existing project to fix it.
This was the error I got when running ionic cordova build android:
$ ionic cordova build android
> ionic-app-scripts build --target cordova --platform android
[20:22:51] ionic-app-scripts 3.1.8
<build blah blah>
> cordova build android
ANDROID_HOME=/home/gust/Android/Sdk
…
Good luck,
Gustavo.