Add support for Android P
See original GitHub issueEven though I didn’t try to build specifically for Android P, I got this error while installing the plugin.
$ phonegap cordova plugin add cordova-plugin-background-mode
Installing "cordova-plugin-background-mode" for android
Failed to install 'cordova-plugin-background-mode':TypeError: Invalid Version: android-P
at new SemVer (/usr/lib/node_modules/phonegap/node_modules/cordova-lib/node_modules/semver/semver.js:295:11)
at Range.test (/usr/lib/node_modules/phonegap/node_modules/cordova-lib/node_modules/semver/semver.js:1049:15)
at Function.satisfies (/usr/lib/node_modules/phonegap/node_modules/cordova-lib/node_modules/semver/semver.js:1098:16)
at checkEngines (/usr/lib/node_modules/phonegap/node_modules/cordova-lib/src/plugman/install.js:144:21)
at /usr/lib/node_modules/phonegap/node_modules/cordova-lib/src/plugman/install.js:343:16
at _fulfilled (/usr/lib/node_modules/phonegap/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (/usr/lib/node_modules/phonegap/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (/usr/lib/node_modules/phonegap/node_modules/q/q.js:749:13)
at /usr/lib/node_modules/phonegap/node_modules/q/q.js:557:44
at flush (/usr/lib/node_modules/phonegap/node_modules/q/q.js:108:17)
Error: Invalid Version: android-P
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:8
Top Results From Across the Web
Android 9 features and APIs
Android 9 adds platform support for the IEEE 802.11-2016 Wi-Fi protocol—also known as Wi-Fi Round-Trip-Time (RTT)—to let you take advantage ...
Read more >Android Help - Google Support
Official Android Help Center where you can find tips and tutorials on using Android and other answers to frequently asked questions.
Read more >Introducing Android 9 Pie - Android Developers Blog
Android 9 adds an updated version of the Neural networks API, to extend Android's support for accelerated on-device machine learning.
Read more >ARCore supported devices - Google Developers
Manufacturer Device model Comments
Asus ROG Phone
Asus ROG Phone II
Asus ROG Phone III Supports Depth API
Read more >Use apps from your Android device on your PC
Note: The Phone Link app doesn't currently support multiple Android profiles or work/school accounts. You can add your Android apps as favorites on...
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
In the mean time, I managed to get it working by removing the Android P preview folder from my
/android_sdk_tools/platforms
folder. I installed the SDK manually on Linux, no idea what its default location is when installed with Android Studio. However, chances are that it’ll be added back when you update your SDK.@juandi I’m not closing this issue until Android P is actively supported. You shouldn’t accept workarounds as a solve.