简体   繁体   中英

How to configure a PhoneGap Android to create android App in Windows?

I have to configure Phonegap to create android App in windows but I am facing some issues . I have been taking help from a tutorial . But when I try to create the project in commandline , it throws an error

Missing one of the following:
JDK: http://java.oracle.com
Android SDK: http://developer.android.com
Apache ant: http://ant.apache.org 

Plz help .

It happens to me and I solved this way:

First verify you actually have these requirements installed, run these commands:

java -version
ant -version
android

If none of them throws a not recognized command error, then you're good to go and:

  1. Make a copy of create.bat (just to keep the original)
  2. Edit create.bat and remove the checking part and let it like this:

@ECHO OFF

cscript "%~dp0\\create.js" %*

It works fine for me.

Edit: If one of those commands are not recognized then you have to check your PATH variable.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM