NoSuchMethodError Auth0Exception
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
- Compile a release build with minifyEnabled as true.
- Attempt to launch the
PasswordlessLock - Crash
Additional context
Kotlin - 1.9.20
Lock.Android version
3.2.2
Android version(s)
11
I'm also seeing this issue using java 18. Is Lock.Android still supported?
Same problem here. It's persistent when putting the phone into Airplane mode.
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?
+1, the issue affects us as well