Edit 3:
Cordova Android 6.2.2 has been released and it’s fully compatible with SDK tools 26.0.x and 25.3.1. Use this version:
cordova platform update [email protected]
or
cordova platform rm android
cordova platform add [email protected]
Edit 2:
There has been another Android SDK tools release (26.0.x) that is not fully compatible with cordova-android 6.2.1.
Edit:
Cordova Android 6.2.1 has been released and it’s now compatible with latest Android SDK.
You can update your current incompatible android platform with
cordova platform update [email protected]
Or you can remove the existing platform and add the new one (will delete any manual change you did inside yourProject/platforms/android/
folder)
cordova platform rm android
cordova platform add [email protected]
You have to specify the version because current CLI installs 6.1.x by default.
Old answer:
Sadly Android SDK tools 25.3.1 broke cordova-android 6.1.x
For those who don’t want to downgrade the SDK tools, you can install cordova-android from github url as most of the problems are already fixed on master branch.
cordova platform add https://github.com/apache/cordova-android