react-native-background-timer icon indicating copy to clipboard operation
react-native-background-timer copied to clipboard

Task :react-native-background-timer:compileDebugJavaWithJavac FAILED

Open v-agnelli opened this issue 4 years ago • 3 comments

Hi, I've tried to use the timer in a simple project: with the iOS simulator it works ok, but when I've tried to build it with react-native run-android, I've got this error:

Task :react-native-background-timer:compileDebugJavaWithJavac FAILED 27 actionable tasks: 2 executed, 25 up-to-date

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':react-native-background-timer:compileDebugJavaWithJavac'.

Could not find tools.jar. Please check that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home contains a valid JDK installation.

  • 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 2s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':react-native-background-timer:compileDebugJavaWithJavac'.

Could not find tools.jar. Please check that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home contains a valid JDK installation.

  • 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

Maybe the problem is connected with the last update of BigSur? I'm running 11.3 Thanks!

v-agnelli avatar May 03 '21 14:05 v-agnelli

same issue

celciusjj avatar Sep 17 '21 18:09 celciusjj

same issue..

jeanpaulo avatar Dec 06 '22 21:12 jeanpaulo

the same issue someone help me pls

rayudu12345 avatar Apr 03 '24 10:04 rayudu12345