Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-7898

Cordova build on android doesn't build lib projects properly

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 4.0.0
    • Fix Version/s: None
    • Labels:
    • Environment:

      Xubuntu 13.10 x86_64, node=v0.10.25, npm=2.1.5, cordova=4.0.0, cordova-android=3.6.4

      Description

      PS: Found this issue while working with the FacebookConnect plugin from Wizcorp.

      I have my project set up to work with both CLI and with IntellijIDEA, but CLI hasn't been able to build the project properly since I upgraded it to 4.0.0.

      The Facebook plugin adds a library project into my main platforms/android project through project.properties, and with that IntellijIDEA already knows how to handle stuff on it's own (and it works). However, although the CLI runs through the ant targets that compile the library projects, it seems the output is not copied or handled properly. In runtime, I see errors of the Facebook activity/intent trying to reach for a R.<resourceId> and not finding it, and thus force-stoping the application.

      The plugin's documentation recently added to the instalation steps a step to run ant release into the library project, so that it compiles and releases itself into the parent project once, and considering it doesn't change anymore, it works "forever". Only that it doesn't: if I have to [update the plugin, update cordova, chechout the project, switch branches] I'll have to re-run through that step.

      I may be wrong on this one and this could be a ant/android issue, but maybe it's at cordova's reach to solve this.

      PS2: I haven't even tried migrating from ant to gradle now that cordova supports it, only because I didn't have time to look for instructions or documentation. If doing such migration would solve the issue, please point me towards any of those.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kikoalemao Frederico Costa Galvão
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: