Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-9227

muli-module android project fails to build

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: maven-plugin
    • Labels:
      None

      Description

      Jenkins is unable to build a multi-module Android project. If you configure such a project in Jenkins, the build will fail with this error:

      [ERROR] Cannot create the APKBuilder object
      com.android.sdklib.build.ApkCreationException: java.io.FileNotFoundException: /home/hudsonslave/data/workspace/callid-for-android/application/target/classes.dex does not exist

      To reproduce this problem, you need to have the create a new Jenkins job, using this Git "URL of repository" value: git://gitorious.org/callerid-for-android/mainline.git
      The "Branch Specifier (blank for default):" is "master"
      Set "Goals and options" to "clean install"
      The defaults should be fine for the rest. You will need the Android Tools installed and ANDROID_HOME set appropriately, too, as this is an Android project

      Notably, if this code is checked out and simply built using "mvn clean install" on the command line (which should do the exact same thing as Jenkins) the build succeeds.

      I believe Jenkins is incorrectly figuring out which goals to apply to each module, skipping the important "android:generate-sources compiler:compile resources:resources jar:jar android:unpack android:dex" goals. See this mailing list discussion for a similar problem experienced by others: https://groups.google.com/group/maven-android-developers/browse_frm/thread/f2a25a24ab932567/d875b723e56cd55e?#d875b723e56cd55e

        Issue Links

          Activity

          candrews candrews created issue -
          ohtake_tomohiro OHTAKE Tomohiro made changes -
          Field Original Value New Value
          Link This issue is duplicated by JENKINS-9226 [ JENKINS-9226 ]
          ohtake_tomohiro OHTAKE Tomohiro made changes -
          Link This issue is duplicated by JENKINS-9225 [ JENKINS-9225 ]
          ircbot IRCbot Run by Kohsuke made changes -
          Component/s maven-plugin [ 16033 ]
          Component/s maven2 [ 15487 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              candrews candrews
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: