Cordova android build fails with gradle wrapper error

After updating Android Studio I got the following error message:

could not find gradle wrapper within android sdk. might need to update your android sdk

After some research on the internet I found the following solution: https://stackoverflow.com/questions/31310182/error-could-not-find-gradle-wrapper-within-android-sdk-might-need-to-update-yo

cp -r /Applications/Android\ Studio.app/Contents/plugins/android/lib/templates ~/Library/Android/sdk/tools
chmod a+x ~/Library/Android/sdk/tools/templates/gradle/wrapper/gradlew

Leave a Comment

Your email address will not be published. Required fields are marked *

*
*