Appauth-android: [Crashlytics] ActivityNotFoundException in AuthorizationService Class

Created on 9 Feb 2021  路  7Comments  路  Source: openid/AppAuth-Android

The Crash has been reported in crashlytics for latest PlayStore Version. Below are the crash logs form crashlytics for same. Attached the screenshot of crashlytics for reference.

Fatal Exception: android.content.ActivityNotFoundException
at net.openid.appauth.AuthorizationService.prepareAuthorizationRequestIntent(AuthorizationService.java:372)
at net.openid.appauth.AuthorizationService.performAuthorizationRequest(AuthorizationService.java:232)
at net.openid.appauth.AuthorizationService.performAuthorizationRequest(AuthorizationService.java:174)
at com.janrain.android.engage.OpenIDAppAuthGoogle.makeAuthRequest(OpenIDAppAuthGoogle.java:162)
at com.janrain.android.engage.OpenIDAppAuthGoogle.access$000(OpenIDAppAuthGoogle.java:62)
at com.janrain.android.engage.OpenIDAppAuthGoogle$1.onFetchConfigurationCompleted(OpenIDAppAuthGoogle.java:120)
at net.openid.appauth.AuthorizationServiceConfiguration$ConfigurationRetrievalAsyncTask.onPostExecute(AuthorizationServiceConfiguration.java:364)
at net.openid.appauth.AuthorizationServiceConfiguration$ConfigurationRetrievalAsyncTask.onPostExecute(AuthorizationServiceConfiguration.java:305)
at android.os.AsyncTask.finish(AsyncTask.java:695)
at android.os.AsyncTask.access$600(AsyncTask.java:180)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:712)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6863)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

waiting-for-response

All 7 comments

you need to add the <queries> tag from the library manifest to your manifest since the 0.7.1 doesn't have it.

As @ghosalmartin mentioned if you're using version 0.7.1 or older you'll need to define <queries> tag manually.
Otherwise, please consider using a newer build from JitPack: https://jitpack.io/#openid/AppAuth-Android which resolves this issue.

We are experiencing something similar, using AppAuth 0.7.1. On Android 11, starting today (I believe), BrowserSelector.getAllBrowsers() is coming back with an empty list when it queries for BROWSER_INTENT intents. Android 10 and below is fine.

https://github.com/openid/AppAuth-Android/blob/master/library/java/net/openid/appauth/browser/BrowserSelector.java#L90

We are pretty sure this was working yesterday (February 8th and earlier).

We added the <queries> section to our manifest and everything is fine. It only broke once we bumped the compile target from 29 to 30. 馃憤

@agologan Will there be an official release anytime soon with the latest fixes? Or is the precedent to now just use whatever commits we need and build vs that?

As of today there is one: 0.8.0

In spite of the OP not responding, I'm assuming this was related to the <queries> tag and am closing the issue. Feel free to open a new one if you still experience this problem and can provide further information 馃憤

Was this page helpful?
0 / 5 - 0 ratings