简体   繁体   中英

PhoneGap error when compiling locally

I did the following and I am getting the error message

  • I installed Apache Ant using the command npm install apache ant
  • I updated my Cordova to the latest version, 3.4.0 by the command npm -g update phonegap
  • I updated the system variables so the /bin directory of Java SDK and the /bin of Apache Ant is included in the PATH
  • I updated my Android SDK and included Google API Ver 19

And I am still getting the following error message! You can open the image on new tab or save the image so you can view the message more clearly

I tried running check_reqs and it only gave me one line which was

"An error occuured while listing Android targets"

我的错误讯息

"I updated my Cordova to the latest version, 3.4.0 by the command npm -g update phonegap"

Cordova and PhoneGap are two different things in terms of command line clients. Have you run npm -g install cordova ? You need to have both for the phonegap client to work with local builds.

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