You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Kelvin Dart (JIRA)" <ji...@apache.org> on 2014/01/24 13:18:37 UTC

[jira] [Commented] (CB-5889) `cordova platform update android` does not update the Android platform project correctly

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

Kelvin Dart commented on CB-5889:
---------------------------------

Because CordovaLib is created when you create a new project, a quick workaround for this would be as follows:

1) Create a temporary Cordova project (the default will suffice) `cordova create test`
2) cd into the directory and add the Android platform:
cd test
cordova platform add android
3) Build the project: `cordova build` (wait for it to complete).

In Eclipse
1) Import your project (File > Import... > Existing Android Code into Workspace) into Eclipse
2) (Presuming your existing Cordova project is in your loaded workspace) ctrl + click on your Cordova project > Properties > 'Android' tab (LHS)
3) Under the 'Library' section click Add
4) You should see HelloCordova-CordovaLib here (which was imported from step #1)
5) Apply & close


> `cordova platform update android` does not update the Android platform project correctly
> ----------------------------------------------------------------------------------------
>
>                 Key: CB-5889
>                 URL: https://issues.apache.org/jira/browse/CB-5889
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, CLI
>    Affects Versions: 3.3.0
>         Environment: Mac OS X 10.9.1 Mavericks; node v0.10.24; Cordova 3.3.1-0.1.2
>            Reporter: Kelvin Dart
>              Labels: bug, cli, update
>
> Running `cordova platform update android` using Cordova 3.3.1-0.1.2 does not update correctly because CordovaLib is not created in the project.
> Previously running Cordova 3.2.0-0.4.0, I upgraded Cordova via `sudo npm update cordova`, which executed fine. Then I updated my project using the above command - it executed fine (no errors produced via the CLI). Opening Eclipse, and '<proj_name>-CordovaLib' was missing (which I've verified is needed after setting up a default 3.3.1 default project).
> The Eclipse project does not compile because CordovaLib is where the org.apache.cordova.* package resides.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)