question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for Android P

See original GitHub issue

Even 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:open
  • Created 6 years ago
  • Reactions:5
  • Comments:8

github_iconTop GitHub Comments

6reactions
sharppaulcommented, Mar 13, 2018

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.

3reactions
sharppaulcommented, May 20, 2018

@juandi I’m not closing this issue until Android P is actively supported. You shouldn’t accept workarounds as a solve.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found