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:

cp -r /Applications/Android\ ~/Library/Android/sdk/tools
chmod a+x ~/Library/Android/sdk/tools/templates/gradle/wrapper/gradlew

Leave a Reply

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