[ 
https://issues.apache.org/jira/browse/CB-4074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13711233#comment-13711233
 ] 

Lisa Seacat DeLuca commented on CB-4074:
----------------------------------------

I checked and made sure i had java_home set as well as ant and my path includes 
both the android tools and platform-tools dirs.  At least my output is a little 
friendlier than "undefined"

C:\workspaces\cordovacli\helloworld>cordova -d platform add android
cordova library for "android" already exists. No need to download. Continuing.
Checking if platform "android" passes minimum requirements...
Checking Android requirements...
Running "android list target" (output to follow)

Error: The command `android` failed. Make sure you have the latest Android SDK 
installed, and the `android` command (inside the tools/ folder) added t
o your path. Output:
    at 
C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\cordova\src\platform.js:185:42
    at 
C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\cordova\src\metadata\android_parser.js:50:13
    at 
C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\cordova\node_modules\shelljs\shell.js:1707:7
    at exithandler (child_process.js:633:7)
    at ChildProcess.errorhandler (child_process.js:649:5)
    at ChildProcess.EventEmitter.emit (events.js:95:17)
    at Process.ChildProcess._handle.onexit (child_process.js:787:12)

--------------
I'm still seeing the xcopy output so I'm googling that now

C:\workspaces\cordovacli\helloworld>android list target
'xcopy' is not recognized as an internal or external command,
operable program or batch file.
Available Android targets:
----------
id: 1 or "android-17"
     Name: Android 4.2.2
     Type: Platform
     API level: 17
     Revision: 2
     Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, 
WXGA720, WXGA800, WXGA800-7in
     ABIs : armeabi-v7a, mips, x86
----------
id: 2 or "Google Inc.:Google APIs:17"
     Name: Google APIs
     Type: Add-On
     Vendor: Google Inc.
     Revision: 3
     Description: Android + Google APIs
     Based on Android 4.2.2 (API level 17)
     Libraries:
      * com.google.android.media.effects (effects.jar)
          Collection of video effects
      * com.android.future.usb.accessory (usb.jar)
          API for USB Accessories
      * com.google.android.maps (maps.jar)
          API for Google Maps
     Skins: WSVGA, HVGA, WXGA720, WXGA800-7in, WXGA800, WQVGA432, WVGA854, 
WQVGA400, WVGA800 (default), QVGA
     ABIs : armeabi-v7a

C:\workspaces\cordovacli\helloworld>

                
> Error when adding android platform on Windows 7
> -----------------------------------------------
>
>                 Key: CB-4074
>                 URL: https://issues.apache.org/jira/browse/CB-4074
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>         Environment: Windows 7
>            Reporter: Lisa Seacat DeLuca
>            Assignee: Filip Maj
>
> I got past the issue where I wasn't able to install cordova on my windows 7 
> machine.  I create a new project just fine but when I tried to add android as 
> a platform I see the following error:
> C:\workspaces\cordovacli\helloworld>cordova platform add android
> shell.js: internal error
> Error: EPERM, operation not permitted 
> 'C:\Users\me\.cordova\lib\android\cordova\2.9.0\cordova-android-2.9.0-df1536e\test'
>     at Object.fs.renameSync (fs.js:543:18)
>     at 
> C:\Users\me\AppData\Roaming\npm\node_modules\cordova\node_modules\shelljs\shell.js:487:8
>     at Array.forEach (native)
>     at Object._mv 
> (C:\Users\me\AppData\Roaming\npm\node_modules\cordova\node_modules\shelljs\shell.js:463:11)
>     at Object.mv 
> (C:\Users\me\AppData\Roaming\npm\node_modules\cordova\node_modules\shelljs\shell.js:1471:23)
>     at Extract.<anonymous> 
> (C:\Users\me\AppData\Roaming\npm\node_modules\cordova\src\lazy_load.js:115:43)
>     at Extract.EventEmitter.emit (events.js:117:20)
>     at DirWriter.<anonymous> 
> (C:\Users\me\AppData\Roaming\npm\node_modules\cordova\node_modules\tar\lib\extract.js:66:8)
>     at DirWriter.EventEmitter.emit (events.js:117:20)
>     at end 
> (C:\Users\me\AppData\Roaming\npm\node_modules\cordova\node_modules\tar\node_modules\fstream\lib\writer.js:323:12)
> --------------
> note: I can use eclipse and create an android project with no problem and 
> test on devices and emulators.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to