WARNING: IF YOU IGNORE THIS TEMPLATE, WE'LL IGNORE YOUR ISSUE. YOU MUST FILL THIS IN!
Provide a general summary of the issue.
cordova -v): 7.0.1cordova platform ls):6.2.3Installing "cordova-plugin-local-notification" for android
Plugin doesn't support this project's android-sdk version. android-sdk: 23.0.0, failed version requirement: >=26
Skipping 'cordova-plugin-local-notification' for android
So what's the problem? What are you expecting to see?
I don't know why this particular pluggin fails to install on android. That's my problem.
Any updates on this ? Same issue here
@mariomarquesinf Android SDK level is wrong, install the right version
@SaiVikas0801 Don't pollute other threads. Your issue is nothing to do with this thread. Your issue is that the plugin only works on IOS 10. As the error message says IOS version requirement >= 10.0.0. Use the older plugin or upgrade IOS to 10.
@rwillett I have the Android SDK requested but i have the same error. Thanks for your response.
@mariomarquesinf any luck?
I have installed all sdk versions in Android Studio.
~I have no idea if it matters, but what versions of node and npm are you using?~
~node --version~
~npm --version~
Nevermind. I have another system that will install the plugin and it's on the same node and npm versions (8.11.1 and 6.0.0) so this isn't it.
Trying to track this down as well, my android sdk is 27 according to android studio. The plugin wants android-sdk >= 26 so in theory the dependency is met. But in practice...
We have the same versions and it all works.
I'd post a picture of your android studio and show whats installed.
Not sure if this is exactly related. but I updated Cordova Android to 7.1.0. and re-installed the plugin via Ionic. At least for now, it does schedule the notification on my testing Nexus 5 phone.
Thx... It'll install (complaining about the sdk version) but I'm not able to get the build to happen (still, the error messages imply that I'm not building with the correct android sdk, and the correct sdk is installed). That's a topic for another issue however and I won't hijack this thread.
Same issue here, any solution to fix this.
Its been six months since this thread is open & not fixed yet ? or rather not answered
I have no idea if it matters, but what versions of node and npm are you using?
node --version
npm --versionNevermind. I have another system that will install the plugin and it's on the same node and npm versions (8.11.1 and 6.0.0) so this isn't it.
Trying to track this down as well, my android sdk is 27 according to android studio. The plugin wants android-sdk >= 26 so in theory the dependency is met. But in practice...
I guess its not the same sdk versions in my case has 2 sdk folders which ANDROID_HOME variable not pointing to the same as Android SDK Manager without thinking of consequences I am trashing the old one now to see what happens next
I kept this thread open in my shell that I come back & answer to this post pending since 6 months. This is what I did to fix the issue. In my case some how there are 2 versions of android sdk folders and the ANDROID_HOME is pointing to old version. First I uninstalled from Android Studio all the SDK which was installed, then I deleted these 2 sdk folders from C:\Users\
Then from Android Studio -> Tools -> SDK Manager I installed Android 8.1.1 which is having API 27
Then executed below
cordova platform rm android
cordova platform add android
that s it, it did gave some warnings but this time able to install local notification without any issue.
please also install Android Build Tools
I get this error today,
I'm not sure if this helps but I removed the Android Q Preview and it worked for me.
I hit this error today - seems to be caused the this line in the plugin.xml:
<engine name="android-sdk" version=">=26" />
Quick and dirty workaround: edit plugins/cordova-plugin-local-notifications/plugin.xml and comment out that line:
<!--<engine name="android-sdk" version=">=26" />-->
Then force install the plugin again:
cordova plugin add cordova-plugin-local-notifications --force
Thanks @dpa99c !
I was having
Failed to install 'cordova-plugin-local-notification': TypeError: Invalid Version: android-Q
I removed the Android Q Preview and it worked for me too :-)
Most helpful comment
Any updates on this ? Same issue here