Problem :
I am working on the Ionic project in Ubuntu 16.04 LTS, and now I am preparing for release. So I am running the following command:
cordova build --release android
But I am facing the following error:
Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK.
Looked here: /home/user/Android/Sdk/tools/templates/gradle/wrapper
· I am not having the templates/gradle/wrapper directory.
· I am having the latest version of Android Studio is 2.3 for now
· I am having Android SDK Platform-Tools 25.0.3
· I am having Android SDK Tools 25.3.1
· I am having All Android versions from 2.1 (Eclair) to 7.1.1 (Nougat)
Does anybody have any clue on this error?