I need your help. I am trying to install the apache cordova and to create the first application using the tutorialspoint help. As can you see I have jdk but cordova can not build the app. Do you know why? This is what command prompt answers
Asked
Active
Viewed 1,250 times
0
-
2Launch command "cordova requirements" from CMD and check if all requisites are satisfied. – Frix33 Feb 20 '17 at 15:50
-
Thank you for your quick answer. – goergios Feb 20 '17 at 15:55
-
1http://prntscr.com/eb5or8 these are the results. I have the jdk but cordova can not see it. I also have android sdk and I have this variable as you can see. Do you have any ideas? – goergios Feb 20 '17 at 15:56
-
For android you need to download android-sdk for API level of our build. Launch ANDROID command on CMD then download SDK by checking appropriate SDK (es API21). For java problem, have you added JAVA_HOME on your PATH system variable? try to "ECHO %PATH%" on CMD and check. – Frix33 Feb 20 '17 at 16:11
-
And try to reboot /relogon user when you add JAVA_HOME to system PATH variable. You also need ADT_HOME (C:\Program Files (x86)\Android\android-sdk) instead of ANDROID_HOME system variable and add this to PATH same of JAVA_HOME. – Frix33 Feb 20 '17 at 16:19
-
1Thank you for your answer. I am now downloading API and roms of android. But for java I can not understand what are you proposing me. http://prntscr.com/eb67en This is the ECHO PATH on CMD. What do you meen to add JAVA_HOME on PATH system variable? How can I do this? Should I add %JAVA_HOME% to PATH? – goergios Feb 20 '17 at 16:32
-
Hmm no, you already have JAVA_HOME on path. Try to add quotation marks to JAVA_HOME ("C:\Program Files\Java\jdk1.8.0_121") as reported [here](http://stackoverflow.com/questions/22868472/failed-to-run-java-even-though-path-is-set-on-windows-8-enterprise-cordova): sometimes the space in "program files" path cause some issues.. – Frix33 Feb 20 '17 at 16:39
-
Neither this solution works for me. Thanks for the help... I hope to find the solution. – goergios Feb 20 '17 at 16:55