You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After authorizing, when the app tries to launch the RedirectUriReceiverActivity, I get the following error.
Error:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.my_app/net.openid.appauth.RedirectUriReceiverActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
While creating AuthorizationRequest, I set the redirect url as
AuthorizationRequest.Builder(
authServiceConfig,
MY_CLIENT_ID_FROM_GOOGLE_CONSOLE,
ResponseTypeValues.CODE,
Uri.parse("com.googleusercontent.apps.MY_CLIENT_ID_FROM_GOOGLE_CONSOLE:/oauthredirect") // redirect URI
)
I'm not sure if this is helpful, but for android 14, I managed to resolve the same error message by following the comments written in this issue (#977)
The problems can indeed be solved with a hint from #977 :
Add android:theme="@style/Theme.AppCompat.Translucent.NoTitleBar" (or any other appcompat-theme) to the RedirectUriReceiverActivity declaration.
Configuration
Description
After authorizing, when the app tries to launch the
RedirectUriReceiverActivity
, I get the following error.Error:
While creating
AuthorizationRequest
, I set the redirect url asMy
AndroidManifest.xml
In my
build.gradle.kts
I launch the intent from the
AuthorizationService.getAuthorizationRequestIntent()
using the following launcher in my composable.The text was updated successfully, but these errors were encountered: