[
https://issues.apache.org/jira/browse/CB-5506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joe Bowser resolved CB-5506.
----------------------------
Resolution: Not A Problem
This is a duplicate of CB-5338. The version is hard-coded because at the time
of the release that is the version of Android that we compile against. We
always try to compile against the latest, but we can't guarantee that it will
always compile against that SDK level, which is why we specify which version
should be installed.
CB-5338 was fixed by having this set in the platform itself.
> Unable to execute add platform android due to the specific android level
> specified
> ----------------------------------------------------------------------------------
>
> Key: CB-5506
> URL: https://issues.apache.org/jira/browse/CB-5506
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 3.2.0
> Environment: WINDOWS 7,8 , WINDOWS XP, android_parser.js
> Reporter: bai lee
> Priority: Critical
>
> 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-19"
> Name: Android 4.4
> Type: Platform
> API level: 19
> Revision: 1
> Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default),
> WVGA854, W
> XGA720, WXGA800, WXGA800-7in
> ABIs : armeabi-v7a
> Running "android update project -p
> "C:\Users\eric\.cordova\lib\android\cordova\3
> .2.0\framework" -t android-17" (output to follow)...
> Error: Target id 'android-17' is not valid. Use 'android.bat list targets' to
> ge
> t the target ids.
> Creating android project...
> Running bin/create for platform "android" with command:
> ""C:\Users\eric\.cordova
> \lib\android\cordova\3.2.0\bin\create"
> "C:\Users\eric\hello\platforms\android"
> "com.example.hello" "HelloWorld"" (output to follow)
> Error: An error occured during creation of android sub-project.
> at
> C:\Users\eric\AppData\Roaming\npm\node_modules\cordova\src\platform.js:25
> 0:30
> at ChildProcess.exithandler (child_process.js:641: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)
--
This message was sent by Atlassian JIRA
(v6.1#6144)