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

Ian Clelland commented on CB-7366:
----------------------------------

The ability to change `project.properties` yourself should probably be 
documented, but this is currently working as intended. We've tested 
cordova-android thoroughly with SDK 19, and almost not at all with 20, so we 
set the target to 19. We have historically updated the SDK requirements 
periodically, to keep up with the latest versions, but we just haven't moved to 
20 yet.

The first line of your error explains exactly what to do in this case:

{panel}
Please install Android target 19 (the Android newest SDK). Make sure you have 
the latest Android tools installed as well. Run "android" from your 
command-line to install/update any missing SDKs or tools.
{panel}


> Cant add platform using latest android sdk 
> -------------------------------------------
>
>                 Key: CB-7366
>                 URL: https://issues.apache.org/jira/browse/CB-7366
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaLib
>    Affects Versions: 3.5.0
>         Environment: Ubuntu 14.04 LTS 64b
>            Reporter: Muhammad Hussein Fattahizadeh
>            Priority: Blocker
>
> sweb@sweb-laptop:~/andtest/hello$ cordova platform add android
> Downloading cordova library for android...
> Download complete
> Creating android project...
> /home/sweb/.cordova/lib/android/cordova/3.5.1/bin/node_modules/q/q.js:126
>                     throw e;
>                           ^
> Error: Please install Android target 19 (the Android newest SDK). Make sure 
> you have the latest Android tools installed as well. Run "android" from your 
> command-line to install/update any missing SDKs or tools.
>     at 
> /home/sweb/.cordova/lib/android/cordova/3.5.1/bin/lib/check_reqs.js:80:29
>     at _fulfilled 
> (/home/sweb/.cordova/lib/android/cordova/3.5.1/bin/node_modules/q/q.js:798:54)
>     at self.promiseDispatch.done 
> (/home/sweb/.cordova/lib/android/cordova/3.5.1/bin/node_modules/q/q.js:827:30)
>     at Promise.promise.promiseDispatch 
> (/home/sweb/.cordova/lib/android/cordova/3.5.1/bin/node_modules/q/q.js:760:13)
>     at 
> /home/sweb/.cordova/lib/android/cordova/3.5.1/bin/node_modules/q/q.js:574:44
>     at flush 
> (/home/sweb/.cordova/lib/android/cordova/3.5.1/bin/node_modules/q/q.js:108:17)
>     at process._tickCallback (node.js:419:13)
> Error: /home/sweb/.cordova/lib/android/cordova/3.5.1/bin/create: Command 
> failed with exit code 8
>     at ChildProcess.whenDone 
> (/home/sweb/Applications/node/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
>     at ChildProcess.emit (events.js:98:17)
>     at maybeClose (child_process.js:756:16)
>     at Process.ChildProcess._handle.onexit (child_process.js:823:5)
> =============================================
> sweb@sweb-laptop:~$ nano 
> ~/.cordova/lib/android/cordova/3.5.1/framework/project.properties
> I must change it manually. i cant find any documention for this issue :
> target=android-20



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to