0

Uptil yesterday everything was working fine. Now all of a sudden I am getting this error (mentioned in title).

minSdkVersion is set to 16 TargetSdk is set to 25

All answers for previous such queries have not helped. Is there some upstream issue.

My team and I are all hitting the same issue. No code was updated in our app. We just ran the build and hit this error.

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245

1 Answers1

0

This arises from a mismatch between the Android compile SDK version and the support library / build tools version (see here).

Even if you changed no code in the project, if the Android SDK modules were updated or the cordova-android platform version changed, this would cause the observed error.

You can resolve it by updating the project to use the most recent cordova-android version:

cordova platform rm android 
  && cordova platform add android@latest --save 
  && cordova build android

Also make sure the Android SDK components (Support Library, build tools, platform tools) are up-to-date.

Community
  • 1
  • 1
DaveAlden
  • 30,083
  • 11
  • 93
  • 155