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

Вячеслав Шабельник commented on CB-2604:
----------------------------------------

New output:

{code}
vysha@DELL:~$ cd Загрузки/
vysha@DELL:~/Загрузки$ cordova create test
vysha@DELL:~/Загрузки$ cordova -v
2.6.2
vysha@DELL:~/Загрузки$ cd test/
vysha@DELL:~/Загрузки/test$ cordova platform add android
[Error: An error occured during creation of android sub-project. 
BUILD FAILED
/usr/lib/node_modules/cordova/lib/cordova-android/framework/build.xml:137: 
Cannot find /Applications/android-sdk-macosx/tools/ant/build.xml imported from 
/usr/lib/node_modules/cordova/lib/cordova-android/framework/build.xml

Total time: 1 second
An unexpected error occurred: ant jar > /dev/null exited with 1
Deleting project...
]
vysha@DELL:~/Загрузки/test$ 
{code}

I see one interesting info in this input:
{code}
Cannot find /Applications/android-sdk-macosx/tools/ant/build.xml
{code}
Looks like someone like Apple so much that hardcode in Cordova source paths to 
Mac libs and sdks.
I think this wont work on linux after that.
                
> Android Platform cant be added
> ------------------------------
>
>                 Key: CB-2604
>                 URL: https://issues.apache.org/jira/browse/CB-2604
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>         Environment: Ubuntu v12.04, Node v0.8.21, NPM v0.8.21, Cordova v2.5, 
> Java v7, Android SDK v21.1.
>            Reporter: Вячеслав Шабельник
>            Assignee: Filip Maj
>             Fix For: 2.7.0
>
>
> Android Platform cant be added into a project.
> vyacheslavs@vyacheslavs:~$ cordova create test
> vyacheslavs@vyacheslavs:~$ cd test
> vyacheslavs@vyacheslavs:~/test$ cordova platform add android
> [Error: An error occured during creation of android sub-project. Buildfile: 
> /usr/lib/node_modules/cordova/lib/cordova-android/framework/build.xml
> BUILD FAILED
> /usr/lib/node_modules/cordova/lib/cordova-android/framework/build.xml:137: 
> Cannot find /Users/fil/SDKs/android-sdk-macosx/tools/ant/build.xml imported 
> from /usr/lib/node_modules/cordova/lib/cordova-android/framework/build.xml
> Total time: 0 seconds
> An unexpected error occurred: [ ! -e 
> "$BUILD_PATH"/framework/libs/commons-codec-1.7.jar ] exited with 1
> Deleting project...
> ]

--
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