Hello, I'm trying to run my native react app through the
sudo react-native run-android
But I always get the following error message:
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine java version from '11'.
I have tried everything
1- I tested the version of my java
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)
I've set JAVA_HOME, both in / etc / environment and ~ / .bashrc
echo $ JAVA_HOME
/usr/lib/jvm/java-11-openjdk-amd64
I really do not know what to do, because apparently the whole environment is prepared to work properly.