You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "John M. Wargo (JIRA)" <ji...@apache.org> on 2013/06/05 15:22:19 UTC

[jira] [Commented] (CB-3609) Issues with cordova platform add android

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

John M. Wargo commented on CB-3609:
-----------------------------------

I just did another cli install and noticed the following:

SUCCESS: Minimum requirements for android met.
BOOTSTRAPPING android...
ERROR! Could not create a native android project test fixture. See below for error output.

BUILD FAILED
/users/jwargo/Downloads/adt-2/tools/ant/build.xml:713: The following error occurred while executing this line:
/users/jwargo/Downloads/adt-2/tools/ant/build.xml:727: Compile failed; see the compiler error output for details.

Total time: 6 seconds
An unexpected error occurred: ant jar > /dev/null exited with 1
Deleting project...

So apparently the android config is not valid - I'm not quite sure what to do about this though. It's a valid Android config and the android tools 'work' from the command line.
                
> Issues with cordova platform add android
> ----------------------------------------
>
>                 Key: CB-3609
>                 URL: https://issues.apache.org/jira/browse/CB-3609
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 2.8.0
>            Reporter: John M. Wargo
>            Assignee: Filip Maj
>
> I've been struggling with 'cordova android platform add' since yesterday.  I posted enough silly issues yesterday that I didn't want to fill your inboxes with more messages, but I can't get this to work.
> I had the command working yesterday, but noticed that I was using an older version of the Android tools, so upgraded ADT on my mac and started getting errors. About that time I upgraded to 2.8.2 and this morning upgraded to 2.8.3.  Here's what happens:
> Last login: Wed Jun  5 08:30:54 on ttys000
> jmw-mini:~ jwargo$ echo $PATH
> /Applications/SenchaSDKTools-2.0.0-beta3:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/users/jwargo/Downloads/adt-2/platform-tools:/users/jwargo/Downloads/adt-2/tools
> jmw-mini:~ jwargo$ cd dev
> jmw-mini:dev jwargo$ cordova create test
> jmw-mini:dev jwargo$ cd test
> jmw-mini:test jwargo$ cordova platform add ios
> jmw-mini:test jwargo$ cordova platform add android
> [Error: An error occured during creation of android sub-project. 
> BUILD FAILED
> /users/jwargo/Downloads/adt-2/tools/ant/build.xml:650: The following error occurred while executing this line:
> /users/jwargo/Downloads/adt-2/tools/ant/build.xml:702: Failed to create BuildConfig class
> Total time: 0 seconds
> An unexpected error occurred: ant jar > /dev/null exited with 1
> Deleting project...
> ]
> on another system, running OS X 10.7, I get the following:
> Last login: Wed Jun  5 08:19:40 on ttys000
> palm00524809a:~ i833153$ cordova create test
> palm00524809a:~ i833153$ cd test
> palm00524809a:test i833153$ cordova platform add ios
> palm00524809a:test i833153$ cordova platform add android
> [Error: An error occured during creation of android sub-project. 
> BUILD FAILED
> /Users/i833153/Downloads/adt-bundle-mac-x86_64-20130522/sdk/tools/ant/build.xml:650: The following error occurred while executing this line:
> /Users/i833153/Downloads/adt-bundle-mac-x86_64-20130522/sdk/tools/ant/build.xml:691: null returned: 1
> Total time: 1 second
> An unexpected error occurred: ant jar > /dev/null exited with 1
> Deleting project...
> ]
> palm00524809a:test i833153$ 
> I tried reverting to the earlier version of ADT, but that breaks as well:
> Last login: Wed Jun  5 08:25:25 on ttys000
> jmw-mini:~ jwargo$ echo $PATH
> /Applications/SenchaSDKTools-2.0.0-beta3:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/users/jwargo/Downloads/adt-1/platform-tools:/users/jwargo/Downloads/adt-1/tools
> jmw-mini:~ jwargo$ cd dev
> jmw-mini:dev jwargo$ cordova create test
> jmw-mini:dev jwargo$ cd test
> jmw-mini:test jwargo$ cordova platform add ios
> jmw-mini:test jwargo$ cordova platform add android
> [Error: An error occured during creation of android sub-project. mkdir: /usr/local/lib/node_modules/cordova/lib/cordova-android/framework/libs: Permission denied
> An unexpected error occurred: mkdir -p "$BUILD_PATH"/framework/libs exited with 1
> Deleting project...
> ]
> Can someone help me understand what is going wrong here? 

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