Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Task :react-native-screens:compileDebugJavaWithJavac FAILED

Im using react navigation v5.. installed all the dependencies.. now Im getting above error.. FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-screens:compileDebugJavaWithJavac'.
> java.lang.reflect.UndeclaredThrowableException

* 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 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.5/userguide/command_line_interface.html#sec:command_line_warnings
like image 728
Arun.k Avatar asked Sep 08 '26 22:09

Arun.k


1 Answers

Run this command in your terminal

  1. cd android

// to check if there are any deamon running.

  1. ./gradlew --status or .\gradlew --status
  2. ./gradlew --stop
  3. ./gradlew clean
  4. cd ..

// then restart the server

like image 156
user19269148 Avatar answered Sep 11 '26 07:09

user19269148



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!