question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

i get this error when i run the app. I did not get it before 1 day.


> Task :react-native-community_async-storage: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
12 actionable tasks: 2 executed, 10 up-to-date

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-community_async-storage:compileDebugJavaWithJavac'.
> Could not find tools.jar. Please check that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home contains a valid JDK installation.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:17
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

78reactions
hey68youcommented, Mar 4, 2021

On MacOSX bigsur, for me the problem was really that I had 2 JDK’s installed:

$ /usr/libexec/java_home -V | grep jdk

Matching Java Virtual Machines (2):
    1.8.281.09 (x86_64) "Oracle Corporation" - "Java" /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
    1.8.0_282 (x86_64) "AdoptOpenJDK" - "AdoptOpenJDK 8" /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home

React Native needs the adoptopenjdk version, so I added my ~/.bash_profile the adoptopenjdk path as the JAVA_HOME environment variable:

export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
export JAVA_HOME="/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home"
9reactions
L-Yeisercommented, Dec 2, 2020

@andrewdazs see this stack overflow for an explanation

Read more comments on GitHub >

github_iconTop Results From Across the Web

Top 10 Solutions to Fix This App Can't Run on Your PC in Win ...
Safe Fix Cannot Run App in Windows 10 · Solution 1: Download and Install the Right Version of Programs · Solution 2: Update...
Read more >
Xcode error by running app on real… | Apple Developer Forums
My app is running perfectly in the simulator (Xcode Beta and iOS 9), but when I try to run it on my real...
Read more >
How to fix this app can't run on your PC error
Methods to fix “This app can't run on your PC” error: · Method 1: Make a copy of the .exe files you are...
Read more >
shiny - Error when running an app using the runApp('App.R')
I have a problem running my Shiny App using the runApp() button in R. I recieve the error message: Error in ..stacktraceon..({ :...
Read more >
Fix: This app cant run on your PC error on Windows - YouTube
How to fix This app can't run on your PC error message on Windows 10? You may have probably received this message pop...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found