Failed to install 'cordova-plugin-local-notification': TypeError: Invalid Version: android-P
See original GitHub issueTrying to build platform android error
cli packages: (/usr/local/lib/node_modules)
@ionic/cli-plugin-proxy : 1.5.8
@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0
global packages:
cordova (Cordova CLI) : 8.0.0
local packages:
@ionic/app-scripts : 3.1.9
Cordova Platforms : android 7.1.0 ios 4.5.4
Ionic Framework : ionic-angular 3.9.2
System:
Android SDK Tools : 26.1.1
ios-deploy : 1.9.2
ios-sim : 6.1.2
Node : v8.9.4
npm : 5.6.0
OS : macOS High Sierra
Xcode : Xcode 9.2 Build version 9C40b
“cordova-plugin-local-notification”: “^0.9.0-beta.2”
Installed platforms: android 7.1.0 ios 4.5.4
Error Log:
Installing "cordova-plugin-local-notification" for android
Failed to install 'cordova-plugin-local-notification': TypeError: Invalid Version: android-P
at new SemVer (/usr/local/lib/node_modules/cordova/node_modules/semver/semver.js:305:11)
at Range.test (/usr/local/lib/node_modules/cordova/node_modules/semver/semver.js:1112:15)
at Function.satisfies (/usr/local/lib/node_modules/cordova/node_modules/semver/semver.js:1161:16)
at checkEngines (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:116:20)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:313:16
at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:749:13)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:557:44
at flush (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:108:17)
(node:83454) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Invalid Version: android-P
(node:83454) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
Installing "cordova-plugin-local-notification" for android ...
Failed to install 'cordova-plugin-local-notification': Error at new PluginInfo (C:\Users\Deep Brain\AppData\Roaming\npm\node_modules\cordova\ ...
Read more >cordova local notification plugin not working - Stack Overflow
Phone android version: 6.0.1; Cordova version 8.0.0. First test that everything is installed by cmd. java -v --> version 1.8.0_152 ...
Read more >Troubleshooting Cordova Variants - OneSignal Documentation
The following error will happen if CocoaPods is not installed when adding the OneSignal plugin. Installing "onesignal-cordova-plugin" for iOS Failed to install ......
Read more >[Local Notifications Plugin] No enum constant de.appplant ...
Cordova and the LocalNotificationsPlugin return true for loaded and ready. The dev monitor displays the following error for the crashes: A fatal ...
Read more >Blog - Apache Cordova
cordova plugin remove cordova-plugin-media cordova plugin add ... For Android, we updated the media error response object to include the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok I found solution… Go to Android SDK Settings in Android studio and remove Android P Preview.
yes…remove android-P preview …