I have updated cordova to 7.0.1 in windows 8.1 After creating project when i add platform using this command
cordova platform add android
It gives me following error
Using this version of Cordova with older version of cordova-android is deprecated. Upgrade to [email protected] or newer.
Error: Your android platform does not have Api.js
I tried to search it on forums but didn't get it resolved.
We have integrated the Android 12 SplashScreen API including the compatibility library into the core of the Cordova-Android platform to provide support for Android API 22+.
I think you have cordova-android version older than 5. Try to force cordova update:
npm install -g [email protected]
then try to readd cordova-android:
cordova platform rm android
cordova platform add android
run
$ sudo npm uninstall cordova -g
and
$ sudo npm install -g [email protected]
I did not get another solution
Run this at your terminal
ionic cordova platform rm .idea
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With