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

Build fails with Task :react-native-auth0:compileDebugJavaWithJavac FAILED #167

Open
imsam67 opened this issue Jul 29, 2020 · 0 comments
Open

Comments

@imsam67
Copy link

imsam67 commented Jul 29, 2020

I followed the instructions to set this up in a React Native 0.63.1 app and it no longer builds successfully. The error seems to be pointing to Auth0 which is the authentication library I use in the app but nothing about Auth0 has changed and it was building successfully up until I try to implement react-native-azurenotificationhub in the app.

Here's the output I'm seeing:

info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1150 file(s) to forward-jetify. Using 8 workers...
info Starting JS server...
info Installing the app...

> Configure project :app
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)

> Task :react-native-auth0:compileDebugJavaWithJavac FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.2/userguide/command_line_interface.html#sec:command_line_warnings
42 actionable tasks: 2 executed, 40 up-to-date
C:\Users\sam\source\repos\iQuest\Ingrid Mobile\Time\ingridtime\node_modules\react-native-auth0\android\src\main\java\com\auth0\react\A0Auth0Package.java:13: error: A0Auth0Package is not abstract and does not override abstract method createJSModules() in ReactPackage
public class A0Auth0Package implements ReactPackage {
       ^
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-auth0:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
PS C:\Users\sam\source\repos\iQuest\Ingrid Mobile\Time\ingridtime> npx react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1150 file(s) to forward-jetify. Using 8 workers...
info JS server already running.
info Installing the app...

> Configure project :app
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)

> Task :react-native-auth0:compileDebugJavaWithJavac FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.2/userguide/command_line_interface.html#sec:command_line_warnings
42 actionable tasks: 2 executed, 40 up-to-date
C:\Users\sam\source\repos\iQuest\Ingrid Mobile\Time\ingridtime\node_modules\react-native-auth0\android\src\main\java\com\auth0\react\A0Auth0Package.java:13: error: A0Auth0Package is not abstract and does not override abstract method createJSModules() in ReactPackage
public class A0Auth0Package implements ReactPackage {
       ^
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-auth0:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* 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

BUILD FAILED in 6s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
C:\Users\sam\source\repos\iQuest\Ingrid Mobile\Time\ingridtime\node_modules\react-native-auth0\android\src\main\java\com\auth0\react\A0Auth0Package.java:13: error: A0Auth0Package is not abstract and does not override abstract method createJSModules() in ReactPackage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant