[
https://issues.apache.org/jira/browse/CB-4074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13700289#comment-13700289
]
tex commented on CB-4074:
-------------------------
got a similar issue running as administrator on win7 64 :
> cordova platform add android
"Error: The provided path "E:\repositories\test\platforms\android" is not an
Android project."
with -d i get :
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)
Available Android targets:
----------
id: 1 or "android-8"
Name: Android 2.2
Type: Platform
API level: 8
Revision: 3
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WVGA800 (default), WVGA854
ABIs : armeabi
----------
id: 2 or "Google Inc.:Google APIs:8"
Name: Google APIs
Type: Add-On
Vendor: Google Inc.
Revision: 2
Description: Android + Google APIs
Based on Android 2.2 (API level 8)
Libraries:
* com.google.android.maps (maps.jar)
API for Google Maps
Skins: WVGA854, WQVGA400, HVGA, WQVGA432, WVGA800 (default), QVGA
ABIs : armeabi
----------
id: 3 or "KYOCERA Corporation:DTS Add-On:8"
Name: DTS Add-On
Type: Add-On
Vendor: KYOCERA Corporation
Revision: 1
Description: DTS Add-On
Based on Android 2.2 (API level 8)
Libraries:
* com.kyocera.dualscreen (dualscreen.jar)
Dual Screen optional platform library
Skins: DTS400 (default), WVGA854, WQVGA400, HVGA, DTS800, WQVGA432, WVGA800
, QVGA
ABIs : armeabi
----------
id: 4 or "LGE:Real3D Add-On:8"
Name: Real3D Add-On
Type: Add-On
Vendor: LGE
Revision: 1
Description: Real3D add-on
Based on Android 2.2 (API level 8)
Libraries:
* com.lge.real3d (real3d.jar)
Real3D library
Skins: WVGA854, WQVGA400, Optimus3D (default), HVGA, WQVGA432, WVGA800, QVG
A
ABIs : armeabi
----------
id: 5 or "Samsung Electronics Co., Ltd.:GALAXY Tab Addon:8"
Name: GALAXY Tab Addon
Type: Add-On
Vendor: Samsung Electronics Co., Ltd.
Revision: 1
Based on Android 2.2 (API level 8)
Skins: WVGA854, WQVGA400, GALAXY Tab (default), HVGA, WQVGA432, WVGA800, QV
GA
ABIs : armeabi
----------
id: 6 or "android-15"
Name: Android 4.0.3
Type: Platform
API level: 15
Revision: 3
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, W
XGA720, WXGA800
ABIs : armeabi-v7a, mips, x86
----------
id: 7 or "Google Inc.:Google APIs:15"
Name: Google APIs
Type: Add-On
Vendor: Google Inc.
Revision: 2
Description: Android + Google APIs
Based on Android 4.0.3 (API level 15)
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: WVGA854, WQVGA400, WSVGA, WXGA720, HVGA, WQVGA432, WVGA800 (default)
, QVGA, WXGA800
ABIs : armeabi-v7a
----------
id: 8 or "Motorola Mobility, LLC.:ICS_R2:15"
Name: ICS_R2
Type: Add-On
Vendor: Motorola Mobility, LLC.
Revision: 2
Description: Android 4.0.4 phone
Based on Android 4.0.3 (API level 15)
Skins: WVGA854, WQVGA400, WSVGA, WXGA720, HVGA, ATRIX-HD (default), WQVGA43
2, WVGA800, QVGA, WXGA800
ABIs : armeabi-v7a
----------
id: 9 or "android-16"
Name: Android 4.1.2
Type: Platform
API level: 16
Revision: 4
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, W
XGA720, WXGA800, WXGA800-7in
ABIs : armeabi-v7a, mips, x86
----------
id: 10 or "Google Inc.:Google APIs:16"
Name: Google APIs
Type: Add-On
Vendor: Google Inc.
Revision: 3
Description: Android + Google APIs
Based on Android 4.1.2 (API level 16)
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: WVGA854, WQVGA400, WSVGA, WXGA800-7in, WXGA720, HVGA, WQVGA432, WVGA
800 (default), QVGA, WXGA800
ABIs : armeabi-v7a
----------
id: 11 or "android-17"
Name: Android 4.2.2
Type: Platform
API level: 17
Revision: 2
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, W
XGA720, WXGA800, WXGA800-7in
ABIs : armeabi-v7a
----------
id: 12 or "Google Inc.:Google APIs:17"
Name: Google APIs
Type: Add-On
Vendor: Google Inc.
Revision: 2
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: WVGA854, WQVGA400, WSVGA, WXGA800-7in, WXGA720, HVGA, WQVGA432, WVGA
800 (default), QVGA, WXGA800
ABIs : armeabi-v7a
Running "android update project -p "C:\Users\Tex\.cordova\lib\android\cordova\2.
9.0\framework" -t android-17" (output to follow)...
Updated project.properties
Updated local.properties
build.xml: Found version-tag: custom. File will not be updated.
Updated file C:\Users\Tex\.cordova\lib\android\cordova\2.9.0\framework\proguard-
project.txt
Running bin/create for platform "android" with command: ""C:\Users\Tex\.cordova\
lib\android\cordova\2.9.0\bin\create" "E:\repositories\test\platforms\android"
"io.cordova.hellocordova" "HelloCordova"" (output to follow)
C:\Users\Tex\.cordova\lib\android\cordova\2.9.0\bin\create.js(54, 5) Erreur d'ex
ecution Microsoft JScript: Fichier introuvable
Error: The provided path "E:\repositories\test\platforms\android" is not an Andr
oid project.
at Object.android_parser (C:\Users\Tex\AppData\Roaming\npm\node_modules\cord
ova\src\metadata\android_parser.js:35:15)
at C:\Users\Tex\AppData\Roaming\npm\node_modules\cordova\src\prepare.js:67:2
3
at Array.map (native)
at Object.prepare (C:\Users\Tex\AppData\Roaming\npm\node_modules\cordova\src
\prepare.js:65:30)
at C:\Users\Tex\AppData\Roaming\npm\node_modules\cordova\src\platform.js:235
:47
at C:\Users\Tex\AppData\Roaming\npm\node_modules\cordova\node_modules\shellj
s\shell.js:1707:7
at ChildProcess.exithandler (child_process.js:635:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:735:16)
at Process.ChildProcess._handle.onexit (child_process.js:802:5)
----------------------------------------------------------------------
it seems that the problem is located here :
C:\Users\Tex\.cordova\lib\android\cordova\2.9.0\bin\create.js(54, 5) Erreur d'ex
ecution Microsoft JScript: Fichier introuvable
the french message says : "Microsoft JScript execution error: File Not Found"
> 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