Phonegap Build android - error "Adding Android platform" ENOENT

Helo, I'm currently trying to create a basic Android phonegapp application that is automatically created, so I went to the directory ... but when I use the command

phonegap build android

I get this random error as shown in the attached image. enter image description here

Additional Information

I am currently in Windows 8 and completely new to building applications, but I am not familiar with the command line either. Not very familiar with this material ...

What I'm trying to do will be called "compilation", right?

+4
source share
3 answers

, - !

( Windows)

  • node js
  • : npm install -g phonegap
  • Android SDK
  • Android SDK Manager Android 4.4.2 (API19)
    • phonegap/cordova
    • Android SDK SDK Platform
  • , ANDROID_HOME, Android SDK. C:\Users\\AppData\Local\Android\Android-SDK
  • Apache Ant -
  • ANT_HOME, , Ant
  • JDK (Java Development Kit) . ,
  • JAVA_HOME, JDK
  • , GIT.
  • , : PATH:
    • %ANT_HOME%\bin;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools;%JAVA_HOME%\bin

. , , .

, ?; -)

phonegap build android , . USB USB- USB- ,

phonegap run android

APK . .

APK, YOURPROJECT\platforms\android\ant-build ant release. APK YOURPROJECT\platforms\android\bin.

, Noob APK.

-, .

!

+9

android cmd, : 'xcopy' was not recognized.

:

%SystemRoot%\system32; %SystemRoot%; %SystemRoot%\System32\Wbem;
+2

The armin guide is perfect. But if you still cannot, you can do it. Phonegap platform files remain in the folder C: \ Users [username] .cordova \ lib. Go there and delete android / ios / bb ... driectory.

For best results, run the following command:

    npm cache clear

After that, try again, clean the platfrom files, download and create your project.

0
source

Source: https://habr.com/ru/post/1530361/


All Articles