-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
App crashes when targetSdk is 31 #89
Comments
I was looking at his page: https://groups.google.com/g/google-admob-ads-sdk/c/fmbPnkUCIe8?pli=1 dependencies {
} It seems that this is a well known problem and the solution they found was to use androidx.work:work-runtime:2.7.0. |
Following, currently experiencing the same problem when using on API 31 |
Following, experiencing same issue on my app as will on android 12 device |
@prok155 @marcojak @kelvin526 , I managed to fix this while running on Android 12. You just need to install these two packages on your Android project: Can you please verify on your side? Thanks Update: Xamarin.AndroidX.Work.Runtime 2.7.1.3 won't work. It needs to be only on 2.7.0. I don't know why the latest version won't work. |
I've installed only |
@jl-memosoft I can't install those package as my app dev in xamarin form which have compatibility issue. -Update on 9/4/2022- |
Same here! I was trying to install the latest one (2.7.1.4) and it wasn't installing due to incompatible versions. Your and jl-memesoft advice saved me, thanks! |
@jl-memosoft, @davidblaine228 Is it still required with v1.8.0 update ? |
Unfortunately, can't really tell |
For me, it is required |
Describe the bug
App crashes when I set targetSdk to 31 and target framework Android 12. Bug occurs only when I try to run my project on phones and emulators with android 12. Error log:
'com.companyname.mypackagename: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.'
To Reproduce
Steps to reproduce the behavior:
Expected behavior
App doesn't crash on devices with Android 12
Smartphone (please complete the following information):
Additional context
Here are changes to pending intents when app is targeting Android12.
https://developer.android.com/about/versions/12/behavior-changes-12#pending-intent-mutability
The text was updated successfully, but these errors were encountered: