Lock.Android icon indicating copy to clipboard operation
Lock.Android copied to clipboard

NoSuchMethodError Auth0Exception

Open StuStirling opened this issue 2 years ago • 4 comments

Checklist

  • [X] I have looked into the Readme and Examples, and have not found a suitable solution or answer.
  • [X] I have looked into the API documentation and have not found a suitable solution or answer.
  • [X] I have searched the issues and have not found a suitable solution or answer.
  • [X] I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • [X] I agree to the terms within the Auth0 Code of Conduct.

Description

My project is using Java 17. Whenever I attempt to launch the PasswordlessLock. This worked fine prior to updating auth0 to latest or upgrading to 17.

I cannot downgrade as I'm compiling against android sdk 34.

Here is the stack trace.

Caused by java.lang.NoSuchMethodError: No direct method <init>(Ljava/lang/String;Lcom/auth0/android/Auth0Exception;)V in class Lcom/auth0/android/authentication/AuthenticationException; or its super classes (declaration of 'com.auth0.android.authentication.AuthenticationException' appears in base.apk)
       at com.auth0.android.lock.internal.configuration.ApplicationFetcher$FetchTask.makeApplicationRequest(ApplicationFetcher.java:116)
       at com.auth0.android.lock.internal.configuration.ApplicationFetcher$FetchTask.doInBackground(ApplicationFetcher.java:102)
       at com.auth0.android.lock.internal.configuration.ApplicationFetcher$FetchTask.doInBackground(ApplicationFetcher.java:91)
       at android.os.AsyncTask$3.call(AsyncTask.java:394)
       at java.util.concurrent.FutureTask.run(FutureTask.java:264)
       at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
       at java.lang.Thread.run(Thread.java:1012)

Reproduction

  1. Compile a release build with minifyEnabled as true.
  2. Attempt to launch the PasswordlessLock
  3. Crash

Additional context

Kotlin - 1.9.20

Lock.Android version

3.2.2

Android version(s)

11

StuStirling avatar Nov 16 '23 08:11 StuStirling

I'm also seeing this issue using java 18. Is Lock.Android still supported?

kevincmojo avatar Mar 04 '24 21:03 kevincmojo

Same problem here. It's persistent when putting the phone into Airplane mode.

tristan-littlepay avatar Mar 19 '24 05:03 tristan-littlepay

Integrated the library to test using the instructions on https://auth0.com/docs/libraries/lock-android and get this error. I guess the library has been abandoned as last update was in 2023?

pretRossB avatar Jul 31 '25 15:07 pretRossB

+1, the issue affects us as well

barzoj avatar Oct 29 '25 11:10 barzoj