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.

Android app crashes on Android 12 due to some PendingIntent usage requirements

See original GitHub issue

Description:

I am using Jitsi Meet Android app, latest build from google play store as of now, on a Samsung Galaxy Fold 4 running OneUI 4.1.1, Android 12. Jitsi Meet app crashes immediately after I launch it with an exception like the one below in logcat.

11-03 17:22:26.119  1241  1328 W FA      : Service disabled
11-03 17:22:26.120  1241  1241 D MainActivity: LIBRE_BUILD=false
11-03 17:22:26.120  1241  1241 D MainActivity: Initializing Google Services
11-03 17:22:26.121  1467  1467 I SurfaceFlinger: [7ce7790 org.jitsi.meet/org.jitsi.meet.MainActivity#0] FrameRatePriority: 1
11-03 17:22:26.121  1467  1467 I Layer   : id=21969 removedFromDrawingState Surface(name=4fbc713 StatusBar)/@0x4584c0c - animation-leash of insets_animation#0 (158)
11-03 17:22:26.121  1467  1467 I Layer   : id=21970 removedFromDrawingState Surface(name=3f04d40 NavigationBar0)/@0x26445be - animation-leash of insets_animation#0 (158)
11-03 17:22:26.121  3576  3576 W AppTransitionAnimatorImpl: onAnimationStart - APP IN
11-03 17:22:26.121  1467  1467 I Layer   : id=21971 removedFromDrawingState Surface(name=b433f5f Taskbar)/@0xc5ee20c - animation-leash of insets_animation#0 (158)
11-03 17:22:26.121  1467  1467 I SurfaceFlinger: id=21969 Removed Surface(name=4fbc713 StatusBar)/@0x4584c0c - animation-leash of insets_animation#0 (158)
11-03 17:22:26.121  1467  1467 I SurfaceFlinger: id=21970 Removed Surface(name=3f04d40 NavigationBar0)/@0x26445be - animation-leash of insets_animation#0 (158)
11-03 17:22:26.121  1467  1467 I SurfaceFlinger: id=21971 Removed Surface(name=b433f5f Taskbar)/@0xc5ee20c - animation-leash of insets_animation#0 (158)
11-03 17:22:26.121  1467  1467 I Layer   : id=21969 Destroyed Surface(name=4fbc713 StatusBar)/@0x4584c0c - animation-leash of insets_animation#0
11-03 17:22:26.122  1467  1467 I Layer   : id=21970 Destroyed Surface(name=3f04d40 NavigationBar0)/@0x26445be - animation-leash of insets_animation#0
11-03 17:22:26.122  1467  1467 I Layer   : id=21971 Destroyed Surface(name=b433f5f Taskbar)/@0xc5ee20c - animation-leash of insets_animation#0
11-03 17:22:26.122  1241  1337 D CompatibilityChangeReporter: Compat change id reported: 160794467; UID 10383; state: ENABLED
11-03 17:22:26.122  1467  1467 W Scheduler: No mode changed params found, not dispatching cached mode.
11-03 17:22:26.122  1241  1337 E AndroidRuntime: FATAL EXCEPTION: GoogleApiHandler
11-03 17:22:26.122  1241  1337 E AndroidRuntime: Process: org.jitsi.meet, PID: 1241
11-03 17:22:26.122  1241  1337 E AndroidRuntime: java.lang.IllegalArgumentException: org.jitsi.meet: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
11-03 17:22:26.122  1241  1337 E AndroidRuntime: 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.
11-03 17:22:26.122  1241  1337 E AndroidRuntime: 	at android.app.PendingIntent.checkFlags(PendingIntent.java:382)
11-03 17:22:26.122  1241  1337 E AndroidRuntime: 	at android.app.PendingIntent.getActivityAsUser(PendingIntent.java:465)
11-03 17:22:26.122  1241  1337 E AndroidRuntime: 	at android.app.PendingIntent.getActivity(PendingIntent.java:451)
11-03 17:22:26.122  1241  1337 E AndroidRuntime: 	at android.app.PendingIntent.getActivity(PendingIntent.java:415)
11-03 17:22:26.122  1241  1337 E AndroidRuntime: 	at ma.f.f(Unknown Source:2)
11-03 17:22:26.122  1241  1337 E AndroidRuntime: 	at ma.f.e(Unknown Source:1)
11-03 17:22:26.122  1241  1337 E AndroidRuntime: 	at ma.e.e(Unknown Source:1)
11-03 17:22:26.122  1241  1337 E AndroidRuntime: 	at ma.e.q(Unknown Source:3)
11-03 17:22:26.122  1241  1337 E AndroidRuntime: 	at ma.e.B(Unknown Source:1)
11-03 17:22:26.122  1241  1337 E AndroidRuntime: 	at com.google.android.gms.common.api.internal.e.r(Unknown Source:1)
11-03 17:22:26.122  1241  1337 E AndroidRuntime: 	at com.google.android.gms.common.api.internal.e$a.h(Unknown Source:12)
11-03 17:22:26.122  1241  1337 E AndroidRuntime: 	at com.google.android.gms.common.api.internal.e$a.a(Unknown Source:5)
11-03 17:22:26.122  1241  1337 E AndroidRuntime: 	at com.google.android.gms.common.api.internal.e$a.m(Unknown Source:10)
11-03 17:22:26.122  1241  1337 E AndroidRuntime: 	at com.google.android.gms.common.api.internal.e.handleMessage(Unknown Source:50)
11-03 17:22:26.122  1241  1337 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:102)
11-03 17:22:26.122  1241  1337 E AndroidRuntime: 	at bb.h.dispatchMessage(Unknown Source:1)
11-03 17:22:26.122  1241  1337 E AndroidRuntime: 	at android.os.Looper.loopOnce(Looper.java:226)
11-03 17:22:26.122  1241  1337 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:313)
11-03 17:22:26.122  1241  1337 E AndroidRuntime: 	at android.os.HandlerThread.run(HandlerThread.java:67)
11-03 17:22:26.122  3576  6391 I ViewRootImpl@9c27a97[LauncherActivity]: mWNT: t = android.view.SurfaceControl$Transaction@6f2e512 fn = 34 com.android.systemui.shared.system.ViewRootImplCompat.mergeWithNextTransaction:2 com.android.quickstep.util.SurfaceTransactionApplier.lambda$scheduleApply$0:9 com.android.quickstep.util.SurfaceTransactionApplier.a:0
11-03 17:22:26.122  3576  6391 I ViewRootImpl@9c27a97[LauncherActivity]: mWNT: merge t to BBQ
11-03 17:22:26.123  1241  1337 E JitsiMeetSDK: JitsiMeetUncaughtExceptionHandler FATAL ERROR

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
saghulcommented, Nov 22, 2022

Thanks for confirming! I’m going to tentatively close this then.

0reactions
mehul4795commented, Nov 22, 2022

Sorry, I forgot to mention. Yes, the dependency of WorkManager comes from another library in my app. I think @justmax437 must be having the same issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android App crashes when Targeting to Android 12
With the introduction of Android 12, you now have to set either the flag PendingIntent.FLAG_IMMUTABLE or PendingIntent.FLAG_MUTABLE.
Read more >
Bug - Android 12 App crashes on startup due to error with ...
GooRunner: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Read more >
Android 12 PendingIntent Crash Error : r/cn1
My app has a form which user enters some details, clicks send button to submit them to a server. When sending the details,...
Read more >
Android 12 Crash on startup: PendingIntent mutability
Open the Unreal game project in Android Studio; Search with CTRL-SHIFT-F to all occurances of PendingIntent. (in the project, not the Android ......
Read more >
Behavior changes: Apps targeting Android 12
If your app targets Android 12 or higher and contains activities, services, or broadcast receivers that use intent filters, you must explicitly declare...
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