Reputation: 49
I'm trying to run:
ionic build android
Recieving error: Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK. Looked here: /usr/lib/android-sdk/tools/templates/gradle/wrapper
After navigating to /usr/lib/android-sdk/tools/ See that folder templates not exists there.
Tried to update SDK,it won't help.
Upvotes: 0
Views: 202
Reputation: 49
I finally figured it out(I'm Ubuntu user)
Installed androidSDK to different folder(not folder used by Android Studio) following this guide.
https://help.ubuntu.com/community/AndroidSDK
Run: ionic state reset (It deleted android platform)
Run: ionic platform add android
Run: ionic build android
Upvotes: 1