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

androiddeployqt fails with error "duplicate class: org.kde.necessitas.ministro.IMinistro".

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P1: Critical
    • None
    • 5.12.3
    • Build System
    • None
    • Android SDK Platform 28
      Android SDK build tools 28.0.3
      Android NDK 19.2.5345600
      JRE 1.8.0_152
      Qt 5.12.3 android_arm64_v8a

      Windows 7 build host
    • Android, Windows

    Description

       

      androiddeployqt fails with error "duplicate class: org.kde.necessitas.ministro.IMinistro" under windows 7. A simple app (the "analogclock" example) builds for android_arm64_v8a (qmake and make + make install) but androiddeployqt fails with

      Compiling with JDK Java compiler API.
      IMinistro.java:6: error: duplicate class: org.kde.necessitas.ministro.IMinistro
      :compileDebugJavaWithJavac FAILED

      (see attached build.log)

      Running gradle on task compileDebugJavaWithJavac shows that the source file IMinistro.java and a copy of it under install\build\generated are passed to javac, generating the duplicate class error.

      (see attached build.gradle.debug.log)

      Under linux (ubuntu 16.0.4 LTS) it works.

      Attachments

        1. build.gradle.debug.log
          735 kB
        2. build.log
          39 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            taipan BogDan Vatra
            jbourgeois Julien Bourgeois
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes