Error while adding android platform for cordova

Shabbir Dhangot
D:\Shabbir\AndroidTest>cordova platform add android
Creating android project...

C:\Documents and Settings\avaya11\Application Data\npm\node_modules\cordova\node
_modules\q\q.js:126
                    throw e;
                          ^
Error: An error occured during creation of android sub-project.

C:\Documents and Settings\avaya11\.cordova\lib\android\cordova\3.3.0\bin\node_mo
dules\q\q.js:126
                    throw e;
                          ^
Error: An error occurred while listing Android targets
    at C:\Documents and Settings\avaya11\.cordova\lib\android\cordova\3.3.0\bin\
lib\check_reqs.js:87:29
    at _rejected (C:\Documents and Settings\avaya11\.cordova\lib\android\cordova
\3.3.0\bin\node_modules\q\q.js:808:24)
    at C:\Documents and Settings\avaya11\.cordova\lib\android\cordova\3.3.0\bin\
node_modules\q\q.js:834:30
    at Promise.when (C:\Documents and Settings\avaya11\.cordova\lib\android\cord
ova\3.3.0\bin\node_modules\q\q.js:1079:31)
    at Promise.promise.promiseDispatch (C:\Documents and Settings\avaya11\.cordo
va\lib\android\cordova\3.3.0\bin\node_modules\q\q.js:752:41)
    at C:\Documents and Settings\avaya11\.cordova\lib\android\cordova\3.3.0\bin\
node_modules\q\q.js:574:44
    at flush (C:\Documents and Settings\avaya11\.cordova\lib\android\cordova\3.3
.0\bin\node_modules\q\q.js:108:17)
    at process._tickCallback (node.js:415:13)

    at C:\Documents and Settings\avaya11\Application Data\npm\node_modules\cordo
va\src\platform.js:244:30
    at ChildProcess.exithandler (child_process.js:641:7)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:743:16)
    at Process.ChildProcess._handle.onexit (child_process.js:810:5)

D:\Shabbir\AndroidTest>

This Error I got

I downloaded NodeJS and install Following

npm -g install phonegap

npm -g install cordova

npm -g install plugman

npm -g install ant

I set some path for that

PATH
C:\Documents and Settings\avaya11\Application Data\npm;C:\Documents and Settings\avaya11\Application Data\npm\node_modules\ant;C:\NEW ANDROID\sdk\platforms;C:\NEW ANDROID\sdk\platform-tools;C:\Documents and Settings\avaya11\Application Data\npm\node_modules\ant\bin;C:\Program Files\Java\jdk1.6.0_45\bin

this is ANT_HOME path that i downloaded from here

ANT_HOME
C:\Program Files\Java\apache-ant-1.9.3

also added JAVA_HOME , ANDROID_HOME

I did all possible ways but still found error PLZ help me to find solution I think I confused to set a path.

Shabbir Dhangot

After so much research work I found the answer.

I have not set path of the xcopy.

xcopy.exe - this file contains sdk platform information. So I added path of this. xcopy.exe is located in system32 folder.

So I added path like this and I able to add android platform.

%SystemRoot%\System32;

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Cordova, getting Error while adding android platform on Ubuntu 14.04

From Dev

Cordova: Error adding android platform

From Dev

Error while adding platform to Cordova App in Eclipse

From Dev

Error while adding platform to Cordova App in Eclipse

From Dev

Error while Cordova Run Android Platform

From Dev

Cordova CLI:an error while adding Android

From Dev

Error while Adding Android Platform in Ionic framework in ubuntu

From Dev

Error: cordova platform add android

From Dev

Cordova add platform android error

From Dev

Why is PhoneGap/Cordova not adding android platform?

From Dev

Exception while building android platform with cordova

From Dev

Exception while building android platform with cordova

From Dev

ionic platform error when adding android platform

From Dev

Cordova Android Platform Add Android Error 3.3

From Dev

Error trying to add android platform to Cordova

From Dev

Build Error running cordova platform add android

From Dev

"cordova platform add android" shasum error

From Dev

cordova - Error: Failed to fetch platform android

From Dev

cordova phonegap - error installing on Android platform

From Dev

"cordova platform add android" shasum error

From Dev

Cordova 6.4.0: android platform install Whitelist error

From Dev

Cordova : Error When adding platform (cannot call method 'replace' of undefined)

From Java

cordova platform add android not working while listing Android targets

From Dev

cordova platform add android not working while listing Android targets

From Dev

Error while building android platform at cmd

From Dev

Error while adding phone gap platform with Xcode 6.0-beta

From Dev

Error while adding phone gap platform with Xcode 6.0-beta

From Dev

Error while importing cordova project to android studio

From Dev

Error While Adding Cordova Plugin "sqlite-connector.jar" not found!"

Related Related

  1. 1

    Cordova, getting Error while adding android platform on Ubuntu 14.04

  2. 2

    Cordova: Error adding android platform

  3. 3

    Error while adding platform to Cordova App in Eclipse

  4. 4

    Error while adding platform to Cordova App in Eclipse

  5. 5

    Error while Cordova Run Android Platform

  6. 6

    Cordova CLI:an error while adding Android

  7. 7

    Error while Adding Android Platform in Ionic framework in ubuntu

  8. 8

    Error: cordova platform add android

  9. 9

    Cordova add platform android error

  10. 10

    Why is PhoneGap/Cordova not adding android platform?

  11. 11

    Exception while building android platform with cordova

  12. 12

    Exception while building android platform with cordova

  13. 13

    ionic platform error when adding android platform

  14. 14

    Cordova Android Platform Add Android Error 3.3

  15. 15

    Error trying to add android platform to Cordova

  16. 16

    Build Error running cordova platform add android

  17. 17

    "cordova platform add android" shasum error

  18. 18

    cordova - Error: Failed to fetch platform android

  19. 19

    cordova phonegap - error installing on Android platform

  20. 20

    "cordova platform add android" shasum error

  21. 21

    Cordova 6.4.0: android platform install Whitelist error

  22. 22

    Cordova : Error When adding platform (cannot call method 'replace' of undefined)

  23. 23

    cordova platform add android not working while listing Android targets

  24. 24

    cordova platform add android not working while listing Android targets

  25. 25

    Error while building android platform at cmd

  26. 26

    Error while adding phone gap platform with Xcode 6.0-beta

  27. 27

    Error while adding phone gap platform with Xcode 6.0-beta

  28. 28

    Error while importing cordova project to android studio

  29. 29

    Error While Adding Cordova Plugin "sqlite-connector.jar" not found!"

HotTag

Archive