react-native-auth0: Gradle build failed at task ":react-native-auth0:androidJavadoc"

Describe the problem

Android build via ./gradlew build fails at task “:react-native-auth0:androidJavadoc”

What was the expected behavior?

Builds successfully

Reproduction

  • Step 1 Create empty react-native project with react-native-cli “npx react-native init AwesomeProject”
  • Step 2 add react-native-auth0 via “yarn add react-native-auth0”
  • Step 3 configure auth0 domain and scheme in build.gradle in “android/app” directory
manifestPlaceholders = [auth0Domain: "<...>.eu.auth0.com", auth0Scheme: "${applicationId}"]
  • open terminal in project directory
cd android
./gradlew build

This generates provided error

Environment

  • Version of this library used: 2.16.0
  • Which framework are you using, if applicable:
  • Other modules/plugins/libraries that might be involved: No other plugins/modules are required
  • Any other relevant information you think would be useful:

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (6 by maintainers)

Most upvoted comments

@poovamraj the usecase is perfectly valid: passing a --deviceId to target a physical device, or when we need to run Android over WSL and have a adb bridge in place, we must have pass “–deviceId”. honestly a widely used library like this breaking the development flow should be more carefully taken care of.

Hey all 👋 you should be running it with the particular module to avoid this error i.e the command should be

./gradlew :app:build

@poovamraj tried it on a fresh react-native@latest project, still failing:

$ ./gradlew build

> Configure project :react-native-auth0
WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL.

> Task :react-native-auth0:processDebugManifest
package="com.auth0.react" found in source AndroidManifest.xml: /home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/AndroidManifest.xml.
Setting the namespace via a source AndroidManifest.xml's package attribute is deprecated.
Please instead set the namespace (or testNamespace) in the module's build.gradle file, as described here: https://developer.android.com/studio/build/configure-app-module#set-namespace
This migration can be done automatically using the AGP Upgrade Assistant, please refer to https://developer.android.com/studio/build/agp-upgrade-assistant for more information.

> Task :react-native-auth0:processReleaseManifest
package="com.auth0.react" found in source AndroidManifest.xml: /home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/AndroidManifest.xml.
Setting the namespace via a source AndroidManifest.xml's package attribute is deprecated.
Please instead set the namespace (or testNamespace) in the module's build.gradle file, as described here: https://developer.android.com/studio/build/configure-app-module#set-namespace
This migration can be done automatically using the AGP Upgrade Assistant, please refer to https://developer.android.com/studio/build/agp-upgrade-assistant for more information.

> Task :app:createBundleReleaseJsAndAssets
debug Reading Metro config from /home/ogm/projects/auth0_fix_test/metro.config.js
warning: the transform cache was reset.
                Welcome to Metro v0.76.5
              Fast - Scalable - Integrated


info Writing bundle output to:, /home/ogm/projects/auth0_fix_test/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle
info Writing sourcemap output to:, /home/ogm/projects/auth0_fix_test/android/app/build/intermediates/sourcemaps/react/release/index.android.bundle.packager.map
info Done writing bundle output
info Done writing sourcemap output
info Copying 1 asset files
info Done copying assets
/home/ogm/projects/auth0_fix_test/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:2332:18: warning: the variable "DebuggerInternal" was not declared in function "__shouldPauseOnThrow"
          typeof DebuggerInternal !== 'undefined' &&
                 ^~~~~~~~~~~~~~~~
/home/ogm/projects/auth0_fix_test/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:6003:7: warning: the variable "setTimeout" was not declared in function "logCapturedError"
      setTimeout(function () {
      ^~~~~~~~~~
/home/ogm/projects/auth0_fix_test/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:3972:108: warning: the variable "nativeFabricUIManager" was not declared in function "onChange"
...lInstanceHandle ? (from && nativeFabricUIManager.setIsJSResponder(from.sta...
                              ^~~~~~~~~~~~~~~~~~~~~
/home/ogm/projects/auth0_fix_test/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:4584:21: warning: the variable "clearTimeout" was not declared in anonymous function " 101#"
    cancelTimeout = clearTimeout;
                    ^~~~~~~~~~~~
/home/ogm/projects/auth0_fix_test/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:8334:30: warning: the variable "__REACT_DEVTOOLS_GLOBAL_HOOK__" was not declared in anonymous function " 101#"
  if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ogm/projects/auth0_fix_test/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:10720:5: warning: the variable "setImmediate" was not declared in function "handleResolved"
    setImmediate(function () {
    ^~~~~~~~~~~~
/home/ogm/projects/auth0_fix_test/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:14997:12: warning: the variable "fetch" was not declared in anonymous function " 345#"
    fetch: fetch,
           ^~~~~
/home/ogm/projects/auth0_fix_test/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:14998:14: warning: the variable "Headers" was not declared in anonymous function " 345#"
    Headers: Headers,
             ^~~~~~~
/home/ogm/projects/auth0_fix_test/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:14999:14: warning: the variable "Request" was not declared in anonymous function " 345#"
    Request: Request,
             ^~~~~~~
/home/ogm/projects/auth0_fix_test/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15000:15: warning: the variable "Response" was not declared in anonymous function " 345#"
    Response: Response
              ^~~~~~~~
/home/ogm/projects/auth0_fix_test/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15150:24: warning: the variable "FileReader" was not declared in function "readBlobAsArrayBuffer"
      var reader = new FileReader();
                       ^~~~~~~~~~
/home/ogm/projects/auth0_fix_test/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15197:36: warning: the variable "Blob" was not declared in anonymous function " 356#"
        } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {
                                   ^~~~
/home/ogm/projects/auth0_fix_test/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15199:40: warning: the variable "FormData" was not declared in anonymous function " 356#"
        } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {
                                       ^~~~~~~~
/home/ogm/projects/auth0_fix_test/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15201:44: warning: the variable "URLSearchParams" was not declared in anonymous function " 356#"
...e if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body...
                                 ^~~~~~~~~~~~~~~
/home/ogm/projects/auth0_fix_test/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15439:23: warning: the variable "XMLHttpRequest" was not declared in anonymous function " 365#"
        var xhr = new XMLHttpRequest();
                      ^~~~~~~~~~~~~~
/home/ogm/projects/auth0_fix_test/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15009:76: warning: the variable "self" was not declared in anonymous function " 348#"
...undefined' && globalThis || typeof self !== 'undefined' && self || typeof ...
                                      ^~~~
/home/ogm/projects/auth0_fix_test/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:22947:27: warning: the variable "performance" was not declared in anonymous function " 604#"
  if ("object" === typeof performance && "function" === typeof performance.no...
                          ^~~~~~~~~~~
/home/ogm/projects/auth0_fix_test/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:22970:26: warning: the variable "navigator" was not declared in anonymous function " 604#"
  "undefined" !== typeof navigator && undefined !== navigator.scheduling && u...
                         ^~~~~~~~~
/home/ogm/projects/auth0_fix_test/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:23080:37: warning: the variable "MessageChannel" was not declared in anonymous function " 604#"
  };else if ("undefined" !== typeof MessageChannel) {
                                    ^~~~~~~~~~~~~~
/home/ogm/projects/auth0_fix_test/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:23095:34: warning: the variable "nativeRuntimeScheduler" was not declared in anonymous function " 604#"
... = "undefined" !== typeof nativeRuntimeScheduler ? nativeRuntimeScheduler....
                             ^~~~~~~~~~~~~~~~~~~~~~
/home/ogm/projects/auth0_fix_test/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:32972:34: warning: the variable "requestAnimationFrame" was not declared in function "start 9#"
...    this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));
                              ^~~~~~~~~~~~~~~~~~~~~

> Task :react-native-auth0:androidJavadoc FAILED
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:7: error: cannot find symbol
import androidx.annotation.NonNull;
                          ^
  symbol:   class NonNull
  location: package androidx.annotation
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:10: error: package com.auth0.android does not exist
import com.auth0.android.Auth0;
                        ^
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:11: error: package com.auth0.android.authentication does not exist
import com.auth0.android.authentication.AuthenticationAPIClient;
                                       ^
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:12: error: package com.auth0.android.authentication does not exist
import com.auth0.android.authentication.AuthenticationException;
                                       ^
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:13: error: package com.auth0.android.authentication.storage does not exist
import com.auth0.android.authentication.storage.CredentialsManagerException;
                                               ^
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:14: error: package com.auth0.android.authentication.storage does not exist
import com.auth0.android.authentication.storage.SecureCredentialsManager;
                                               ^
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:15: error: package com.auth0.android.authentication.storage does not exist
import com.auth0.android.authentication.storage.SharedPreferencesStorage;
                                               ^
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:16: error: package com.auth0.android.provider does not exist
import com.auth0.android.provider.WebAuthProvider;
                                 ^
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:17: error: package com.auth0.android.result does not exist
import com.auth0.android.result.Credentials;
                               ^
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:18: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.ActivityEventListener;
                                ^
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:19: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.Arguments;
                                ^
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:20: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.Callback;
                                ^
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:21: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.Promise;
                                ^
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:22: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.ReactApplicationContext;
                                ^
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:23: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.ReactContextBaseJavaModule;
                                ^
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:24: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.ReactMethod;
                                ^
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:25: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.ReadableMap;
                                ^
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:26: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.WritableMap;
                                ^
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:37: error: cannot find symbol
public class A0Auth0Module extends ReactContextBaseJavaModule implements ActivityEventListener {
                                   ^
  symbol: class ReactContextBaseJavaModule
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:37: error: cannot find symbol
public class A0Auth0Module extends ReactContextBaseJavaModule implements ActivityEventListener {
                                                                         ^
  symbol: class ActivityEventListener
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:43: error: cannot find symbol
    private final ReactApplicationContext reactContext;
                  ^
  symbol:   class ReactApplicationContext
  location: class A0Auth0Module
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:44: error: cannot find symbol
    private Auth0 auth0;
            ^
  symbol:   class Auth0
  location: class A0Auth0Module
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:45: error: cannot find symbol
    private SecureCredentialsManager secureCredentialsManager;
            ^
  symbol:   class SecureCredentialsManager
  location: class A0Auth0Module
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:46: error: cannot find symbol
    public A0Auth0Module(ReactApplicationContext reactContext) {
                         ^
  symbol:   class ReactApplicationContext
  location: class A0Auth0Module
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:64: error: cannot find symbol
    public void hasValidAuth0Instance(Promise promise) {
                                      ^
  symbol:   class Promise
  location: class A0Auth0Module
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:69: error: cannot find symbol
    public void getCredentials(String scope, double minTtl, ReadableMap parameters, boolean forceRefresh, Promise promise) {
                                                            ^
  symbol:   class ReadableMap
  location: class A0Auth0Module
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:69: error: cannot find symbol
    public void getCredentials(String scope, double minTtl, ReadableMap parameters, boolean forceRefresh, Promise promise) {
                                                                                                          ^
  symbol:   class Promise
  location: class A0Auth0Module
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:92: error: cannot find symbol
    public void saveCredentials(ReadableMap credentials, Promise promise) {
                                ^
  symbol:   class ReadableMap
  location: class A0Auth0Module
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:92: error: cannot find symbol
    public void saveCredentials(ReadableMap credentials, Promise promise) {
                                                         ^
  symbol:   class Promise
  location: class A0Auth0Module
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:102: error: cannot find symbol
    public void enableLocalAuthentication(String title, String description, Promise promise) {
                                                                            ^
  symbol:   class Promise
  location: class A0Auth0Module
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:119: error: cannot find symbol
    public void clearCredentials(Promise promise) {
                                 ^
  symbol:   class Promise
  location: class A0Auth0Module
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:125: error: cannot find symbol
    public void hasValidCredentials(double minTtl, Promise promise) {
                                                   ^
  symbol:   class Promise
  location: class A0Auth0Module
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:143: error: cannot find symbol
    public void webAuth(String scheme, String state, String nonce, String audience, String scope, String connection, int maxAge, String organization, String invitationUrl, int leeway, boolean ephemeralSession, ReadableMap additionalParameters, Promise promise) {
                                                                                                                                                                                                                  ^
  symbol:   class ReadableMap
  location: class A0Auth0Module
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:143: error: cannot find symbol
    public void webAuth(String scheme, String state, String nonce, String audience, String scope, String connection, int maxAge, String organization, String invitationUrl, int leeway, boolean ephemeralSession, ReadableMap additionalParameters, Promise promise) {
                                                                                                                                                                                                                                                    ^
  symbol:   class Promise
  location: class A0Auth0Module
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:195: error: cannot find symbol
    public void webAuthLogout(String scheme, boolean federated, Promise promise) {
                                                                ^
  symbol:   class Promise
  location: class A0Auth0Module
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:214: error: cannot find symbol
    private void handleError(AuthenticationException error, Promise promise) {
                             ^
  symbol:   class AuthenticationException
  location: class A0Auth0Module
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:214: error: cannot find symbol
    private void handleError(AuthenticationException error, Promise promise) {
                                                            ^
  symbol:   class Promise
  location: class A0Auth0Module
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/CredentialsParser.java:3: error: package com.auth0.android.authentication.storage does not exist
import com.auth0.android.authentication.storage.CredentialsManagerException;
                                               ^
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/CredentialsParser.java:4: error: package com.auth0.android.result does not exist
import com.auth0.android.result.Credentials;
                               ^
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/CredentialsParser.java:5: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.ReadableMap;
                                ^
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/CredentialsParser.java:6: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.WritableNativeMap;
                                ^
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/CredentialsParser.java:24: error: cannot find symbol
    public static ReadableMap toMap(Credentials credentials) {
                                    ^
  symbol:   class Credentials
  location: class CredentialsParser
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/CredentialsParser.java:24: error: cannot find symbol
    public static ReadableMap toMap(Credentials credentials) {
                  ^
  symbol:   class ReadableMap
  location: class CredentialsParser
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/CredentialsParser.java:35: error: cannot find symbol
    public static Credentials fromMap(ReadableMap map) {
                                      ^
  symbol:   class ReadableMap
  location: class CredentialsParser
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/CredentialsParser.java:35: error: cannot find symbol
    public static Credentials fromMap(ReadableMap map) {
                  ^
  symbol:   class Credentials
  location: class CredentialsParser
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Package.java:7: error: package com.facebook.react does not exist
import com.facebook.react.ReactPackage;
                         ^
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Package.java:8: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.NativeModule;
                                ^
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Package.java:9: error: package com.facebook.react.bridge does not exist
import com.facebook.react.bridge.ReactApplicationContext;
                                ^
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Package.java:10: error: package com.facebook.react.uimanager does not exist
import com.facebook.react.uimanager.ViewManager;
                                   ^
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Package.java:12: error: cannot find symbol
public class A0Auth0Package implements ReactPackage {
                                       ^
  symbol: class ReactPackage
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Package.java:14: error: cannot find symbol
    public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
                                                  ^
  symbol:   class ReactApplicationContext
  location: class A0Auth0Package
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Package.java:14: error: cannot find symbol
    public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
                ^
  symbol:   class NativeModule
  location: class A0Auth0Package
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Package.java:19: error: cannot find symbol
    public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
                                                ^
  symbol:   class ReactApplicationContext
  location: class A0Auth0Package
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Package.java:19: error: cannot find symbol
    public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
                ^
  symbol:   class ViewManager
  location: class A0Auth0Package
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:52: error: cannot find symbol
    @ReactMethod
     ^
  symbol:   class ReactMethod
  location: class A0Auth0Module
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:63: error: cannot find symbol
    @ReactMethod
     ^
  symbol:   class ReactMethod
  location: class A0Auth0Module
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:68: error: cannot find symbol
    @ReactMethod
     ^
  symbol:   class ReactMethod
  location: class A0Auth0Module
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:91: error: cannot find symbol
    @ReactMethod
     ^
  symbol:   class ReactMethod
  location: class A0Auth0Module
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:101: error: cannot find symbol
    @ReactMethod
     ^
  symbol:   class ReactMethod
  location: class A0Auth0Module
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:118: error: cannot find symbol
    @ReactMethod
     ^
  symbol:   class ReactMethod
  location: class A0Auth0Module
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:124: error: cannot find symbol
    @ReactMethod
     ^
  symbol:   class ReactMethod
  location: class A0Auth0Module
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:136: error: cannot find symbol
    @NonNull
     ^
  symbol:   class NonNull
  location: class A0Auth0Module
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:142: error: cannot find symbol
    @ReactMethod
     ^
  symbol:   class ReactMethod
  location: class A0Auth0Module
/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/src/main/java/com/auth0/react/A0Auth0Module.java:194: error: cannot find symbol
    @ReactMethod
     ^
  symbol:   class ReactMethod
  location: class A0Auth0Module
64 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-auth0:androidJavadoc'.
> Javadoc generation failed. Generated Javadoc options file (useful for troubleshooting): '/home/ogm/projects/auth0_fix_test/node_modules/react-native-auth0/android/build/tmp/androidJavadoc/javadoc.options'

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/8.0.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 27s

Any solution for this ? I have the same problem.

@Nikhil-Anand-DSG @lucasff Even I am facing this issue. Does anyone know how to solve this issue? I am using version 2.17 of the react-native-auth0 and RN 0.70.0 . Its frustrating as its not clear what the issue is.

I am running into this issue as well