Error creating android subproject when using android command for phonegap command

I installed nodejs and did the following:

npm install -g phonegap phonegap create <app path> cd <app path> phonegap run android 

when I run the android command to run, I get below the error:

 An error occurred during creation of android-sub project. The system cannot find the project specified. 

not sure where this comes from.

any clues.

thanks

+7
android command-line-interface
source share
2 answers

However, the same problems and difficult time to find a solution:

  • Make sure JAVA is installed
    • Set JAVA_HOME and PATH variables
  • Make sure ANT is installed.
    • Set the variables ANT_HOME and PATH
  • Make sure Android SDK is installed
    • Add PATH to sdk / tools
    • Add PATH to sdk / platform tool
    • Run the SDK manager to update and install the SDK items.
    • Run the AVD manager to create a default emulator image.
  • Install NodeJS (with PATH)
    • Follow the usual tutorials
    • npm install -g cordova
      • cordova create hi com.sample.hello HelloWorld
      • cd hi
      • Cordoba platform add android
      • Cordoba build
      • Now run your emulator
      • Cordoba emulates an android (patience, age ...)
      • or
      • Cordoba launches android
        • much faster, just make sure the mobile device is connected, turned on, unlocked, usb debugging is turned off and drivers are installed.
        • if you cannot find one try: sdk \ extras \ google \ usb_driver
    • npm install -g phonegap
      • phonegap create hello com.sample.hello HelloWorld
      • cd hi
      • phonegap platform adds android (if it doesn’t work, use the cordova command)
      • phonegap build android
      • now your launch emulator
      • phonegap emulates an android (patience, age ...)
      • or
      • Android browser
        • much faster, just make sure the mobile device is connected, turned on, unlocked, usb debugging is turned off and drivers are installed.
        • if you cannot find one try: sdk \ extras \ google \ usb_driver

I think that the main difference between phonegap / cordova is that the phone delay (which belongs to Adobe) has the ability to build in the cloud through https://build.phonegap.com/

+4
source share

Space is not allowed, I would say

0
source share

All Articles