[ 
https://issues.apache.org/jira/browse/CB-7366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Muhammad Hussein Fattahizadeh updated CB-7366:
----------------------------------------------

    Description: 

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

  was:
sweb@sweb-laptop:~/andtest/hello$ cordova platform add android
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


> 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.2#6252)

Reply via email to