-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem on add pluggin for android plataform #1561
Comments
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? |
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 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<UserName>\Local\AppData\Android
|
I get this error today, |
I hit this error today - seems to be caused the this line in the
Quick and dirty workaround: edit
Then force install the plugin again:
|
Thanks @dpa99c !
I removed the Android Q Preview and it worked for me too :-) |
…1772) * Add namespace to provider authority to prevent crashes on Android. See #1664 * Comment out android-sdk requirement since it's not being applied correctly. See #1561 * oreo bug fix, no smallIcon set in notification (#1792) * Update AssetUtil.java Removing Resources.getSystem() to get resource ID because in android 8.1 (physical device) it fire an exception with the DEFALUT_ICON (res://icon) if no smallIcon is set in the notification schedule. Changed also Options.java for small icon fallback * Update Options.java Removed resId = context.getApplicationInfo().icon The application icon is set always and it is not able to select the resId = android.R.drawable.ic_popup_reminder. This is always set (API 1) and not showing ugly as app icon (notification small icon should be a silhouette)
…atzer#1772) * Add namespace to provider authority to prevent crashes on Android. See katzer#1664 * Comment out android-sdk requirement since it's not being applied correctly. See katzer#1561 * oreo bug fix, no smallIcon set in notification (katzer#1792) * Update AssetUtil.java Removing Resources.getSystem() to get resource ID because in android 8.1 (physical device) it fire an exception with the DEFALUT_ICON (res://icon) if no smallIcon is set in the notification schedule. Changed also Options.java for small icon fallback * Update Options.java Removed resId = context.getApplicationInfo().icon The application icon is set always and it is not able to select the resId = android.R.drawable.ic_popup_reminder. This is always set (API 1) and not showing ugly as app icon (notification small icon should be a silhouette)
WARNING: IF YOU IGNORE THIS TEMPLATE, WE'LL IGNORE YOUR ISSUE. YOU MUST FILL THIS IN!
Provide a general summary of the issue.
Your Environment
cordova -v
): 7.0.1cordova platform ls
):6.2.3Actual Behavior
Installing "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
The text was updated successfully, but these errors were encountered: