Skip to content

NoSuchMethodError Auth0Exception #664

Description

@StuStirling

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis points to a verified bug in the code

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions