John M. Wargo created CB-3609:
---------------------------------

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

Reply via email to