Skip to content
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

CheckEmailHandler.java - com.firebase.ui.auth.ui.email.CheckEmailHandler.fetchCredential - java.lang.IllegalArgumentException #2042

Closed
postfixNotation opened this issue Jun 14, 2022 · 1 comment

Comments

@postfixNotation
Copy link

Step 2: Describe your environment

  • Android device: Galaxy S22 Ultra, Pixel 6
  • Android OS version: Android 12
  • Google Play Services version: ?
  • Firebase/Play Services SDK version: ?
  • FirebaseUI version: v8.0.0

Step 3: Describe the problem:

Crashlytics detected uncaught exceptions which led to app crashes, the stracktrace is inserted below.

Relevant Code:

Fatal Exception: java.lang.IllegalArgumentException: com.yet.another.app: 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.
     at android.app.PendingIntent.checkFlags(PendingIntent.java:382)
     at android.app.PendingIntent.getActivityAsUser(PendingIntent.java:465)
     at android.app.PendingIntent.getActivity(PendingIntent.java:451)
     at android.app.PendingIntent.getActivity(PendingIntent.java:415)
     at com.google.android.gms.internal.auth-api.zzr.zzc(com.google.android.gms:play-services-auth@@19.0.0:19)
     at com.google.android.gms.auth.api.credentials.CredentialsClient.getHintPickerIntent(com.google.android.gms:play-services-auth@@19.0.0:10)
     at com.firebase.ui.auth.ui.email.CheckEmailHandler.fetchCredential(CheckEmailHandler.java:29)
     at com.firebase.ui.auth.ui.email.CheckEmailFragment.onActivityCreated(CheckEmailFragment.java:174)
     at androidx.fragment.app.Fragment.performActivityCreated(Fragment.java:2996)
     at androidx.fragment.app.FragmentStateManager.activityCreated(FragmentStateManager.java:580)
     at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:285)
     at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2189)
     at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2100)
     at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:2002)
     at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3138)
     at androidx.fragment.app.FragmentManager.dispatchActivityCreated(FragmentManager.java:3072)
     at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:251)
     at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:502)
     at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:246)
     at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1455)
     at android.app.Activity.performStart(Activity.java:8315)
     at android.app.ActivityThread.handleStartActivity(ActivityThread.java:4060)
     at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221)
     at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)
     at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)
     at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2438)
     at android.os.Handler.dispatchMessage(Handler.java:106)
     at android.os.Looper.loopOnce(Looper.java:226)
     at android.os.Looper.loop(Looper.java:313)
     at android.app.ActivityThread.main(ActivityThread.java:8663)
     at java.lang.reflect.Method.invoke(Method.java)
     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:567)
     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
@thatfiredev
Copy link
Member

@postfixNotation You need to update the version of the play-services-auth library to 20.0.1:

implementation "com.google.android.gms:play-services-auth:20.0.1"

Closing this as a duplicate of #1999

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants