Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-44371

Android build with Gradle fails due to duplicate class errors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • 5.9.6
    • 5.4.0
    • QPA
    • None
    • Windows 7 64bit
    • Android

    Description

      If you have created custom implementations of QtApplication.java and/or QtActivity.java and used the qmake ANDROID_PACKAGE_SOURCE_DIR directive to build your custom classes into the APK this works fine when building with ANT but does not work when building with gradle since you end up with your own classes in:
      \android-build\src\org\qtproject\qt5\android\bindings
      and the original template files in:
      android-build_qt5androidfiles_\src\org\qtproject\qt5\android\bindings
      The duplication of the classes in the templates and your custom classes causes a fail in the build. When using ANT, this is not a problem since the templates are not included in the build if you use custom classes (the _qt5androidfiles_ directory isn't created).

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            taipan BogDan Vatra
            miketrahearn Mike Trahearn
            Votes:
            9 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes