AppAuth-Android icon indicating copy to clipboard operation
AppAuth-Android copied to clipboard

Unable to create AuthorizationService object in Android studio

Open NoOne5167 opened this issue 3 years ago • 1 comments

Configuration

  • Version: 0.11.1
  • Integration: (Java)

Description

When attempting to create an AuthorizationService object, I get this error: "Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.browser.customtabs.CustomTabsServiceConnection"".

Code for reference: AuthorizationService authService = new AuthorizationService(this);

Attempted to use context from Main as well as context from custom LoginActivity. Neither work.

NoOne5167 avatar Jul 13 '22 14:07 NoOne5167

Do you use ProGuard? Have you tried keeping the class? -keep class androidx.browser.customtabs.CustomTabsServiceConnection { *; }

agologan avatar Jul 27 '22 08:07 agologan