Issue i got in window10


#1

Hi…All,
I got installation error in windows10 so please check and give me some solution so that i can move ahead.i am new in ionic because of that i am struggling to install.

Running command: “C:\Program Files\nodejs\node.exe” C:\myApp\hooks\after_prepare\010_add_platform_class.js C:\myApp
add to body class: platform-android
–save flag or autosave detected
Saving android@~6.3.0 into config.xml file …

C:\myApp>ionic cordova build android

cordova build android
Running command: “C:\Program Files\nodejs\node.exe” C:\myApp\hooks\after_prepare\010_add_platform_class.js C:\myApp

add to body class: platform-android
ANDROID_HOME=C:\Users\IT\AppData\Local\Android\Sdk
JAVA_HOME=C:\Program Files\Java\jdk-9.0.1
Error: Requirements check failed for JDK 1.8 or greater

[ERROR] An error occurred while running cordova build android (exit code 1).


#2

do you have Java 1.8 installed?


#3

Install JDK8 and set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_141 ( i have jdk1.8.0_141 replace it with your version ).
Me also faced the same problem after changing the JAVA_HOME path to JDK8 instead of JDK9 it worked properly.


#4

no i have installed it’s jdk1.9


#5

Install jre-8u144-windows-x64.exe and set path to " C:\Program Files\Java\jdk1.8.0_141 "


#6

Heelo tejakumar i did what you said but it’s came same error.


#7

do you set the path f or java in Environmental Variables (in windows) to JDK1.8 instead of JDK1.9.


#8

yes i have set inplace of 1.9 to 1.8/bin


#9

Hello tejakumar now i got this
add to body class: platform-android

ANDROID_HOME=C:\Users\IT\AppData\Local\Android\Sdk

JAVA_HOME=C:\Program Files\Java\jdk1.8.0_151

Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK.
Looked here: C:\Users\IT\AppData\Local\Android\Sdk\tools\templates\gradle\wrapper


#10

Update your android sdk or download latest Android studio and install it with SDK. Please install latest in " C;/Android/sdk " it would convenient for you. Finally set sdk path as ANDROID_HOME=C:\Android\SDK and restart your IDE.