cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kelvin Dart (JIRA)" <>
Subject [jira] [Commented] (CB-5889) `cordova platform update android` does not update the Android platform project correctly
Date Fri, 24 Jan 2014 12:18:37 GMT


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

View raw message