I have an Ionic app which started to fail when I run:
ionic cordova run android --consolelogs --device --livereload
I get this error:
ANDROID_HOME=/home/ivan/Android
JAVA_HOME=/usr/lib/jvm/java-10-oracle/
Error: Requirements check failed for JDK 1.8 or greater
My environment variables are:
echo $JAVA_HOME
/usr/lib/jvm/java-10-oracle/
echo $ANDROID_HOME
/home/ivan/Android
My current versions:
java -version
java version "10.0.2" 2018-07-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.2+13)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.2+13, mixed mode)
javac -version
javac 10.0.2
Ionic info:
cli packages: (/usr/lib/node_modules)
@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0
global packages:
cordova (Cordova CLI) : 7.0.1
local packages:
@ionic/app-scripts : 3.1.10
Cordova Platforms : android 6.2.3
Ionic Framework : ionic-angular 3.9.2
System:
Android SDK Tools : 26.0.2
Node : v6.14.3
npm : 4.6.1
OS : Linux 4.4
Environment Variables:
ANDROID_HOME : /home/ivan/Android
Misc:
backend : legacy
I don’t know what’s happening here. Any ideas?
Thank’s in advance!