-1
Hi, I’m trying to run my React app Turn on via command
sudo React-Native run-android
But always returns me the following error message:
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine java version from '11'.
I’ve tried to do everything
1- I tested my java version
java -version
openjdk version "11" 2018-09-25
OpenJDK Runtime Environment (build 11+24-Ubuntu-118.04)
OpenJDK 64-Bit Server VM (build 11+24-Ubuntu-118.04, mixed mode, sharing)
2- I included JAVA_HOME, both in /etc/enviroment and ~/. bashrc
echo $JAVA_HOME
/usr/lib/jvm/java-11-openjdk-amd64
I really don’t know what else to do, because apparently the whole environment is prepared to work properly.
Only appears this error ? Or you only took a part ? If possible edit the question and enter the full log. Apparently this error is related to Gradle.
– NoobSaibot
Your Android studio is working? If yes try to view these variables https://facebook.github.io/react-native/docs/getting-started#3-configure-the-android-home-Environment-variable
– Danilo Cândido
Hello, yes... Only this error appears, the complete log are some tips that did not help me kkk
– higor ferreira