Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoSuchMethodError Auth0Exception #664

Open
5 tasks done
StuStirling opened this issue Nov 16, 2023 · 2 comments
Open
5 tasks done

NoSuchMethodError Auth0Exception #664

StuStirling opened this issue Nov 16, 2023 · 2 comments
Labels
bug This points to a verified bug in the code

Comments

@StuStirling
Copy link

Checklist

  • I have looked into the Readme and Examples, and have not found a suitable solution or answer.
  • I have looked into the API documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • 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 StuStirling added the bug This points to a verified bug in the code label Nov 16, 2023
@kevincmojo
Copy link

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

@tristan-littlepay
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This points to a verified bug in the code
Projects
None yet
Development

No branches or pull requests

3 participants