I checked java -version . Result:
java version "1.7.0_80"
Java™ SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot™ 64-Bit Server VM (build 24.80-b11, mixed mode)
taubancam@(none):/var/www/ionic/ahihi$ javac -version
javac 1.7.0_80
But when I run : cordova build --release android
Error is here => Error: Requirements check failed for JDK 1.8 or greater
http://tecadmin.net/install-oracle-java-8-jdk-8-ubuntu-via-ppa/
Thank you so much.I was installed jdk8 by terminal
It is working but then it’s have problem
Error: /var/www/ionic/ahihi/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
One other note that I ran into. I had some parts of my PATH environment variable that were pointing to a 1.7 JDK. I had to swap those over to 1.8 too, then it started to work for me.
Well ,I also met the same issue yesterday fixed at last , but some new errors occurred to me . Here is my jdk environment(vi .bash_profile in command ):
I’m also in similar situation. I received same error and installed JDK 1.8 , but the error stays.
I applied “java -version” and the response is as follows:
java version "1.8.0_111"
Java ™ SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot ™ Client VM (build 25.111-b14, mixed mode, sharing)
but when I want to execute “ionic build android” in a demo project, I receive same error:
ANDROID_HOME=…
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_111
Error: Requirements check failed for JDK 1.8 or greater.
I’ve tried to add android platform again, but get the error: android already added…
finally I’m working on a PC with Windows 7 OS.
I would be thankful if anyone tell me, what is wrong with me
I have resolved the problem. In my case the problem is that I have many java version installed, I have uninstal all java versions from my windows 10 os then I run CC Cleaner and reboot system then I have install again java sdk 1.8 and restart windows again and now works.
I had the same problem reinstalled SDK didn’t work removed old sdk and reinstalled SDK did’t work
You need to delete the android folder form the platform folder and execute ionic run android this will reinstall the platform automatically and build from scratch. I think the cache files are the problem so that is why I think this worked.
I resolved this problem by moving up latest version top in PATH. Always you need to refer least version JDK in JAVA_HOME and same path need to be the top in PATH.