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

Qt 5.14.0 android bug with share example from qt blog

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.14.0 Beta3, 5.14
    • Build System
    • None
    • Android

      Need update you blog post:
      https://www.qt.io/blog/2018/11/06/sharing-files-android-ios-qt-app-part-4

      I probe compile with Qt 5.14.1.  Created apk and started on my phone: have one main screen in application (sea screenshot).

      I attached log for build with default gradle from github (sources) of ekkesSHAREexample
      gradle:2.2.3 (sea attached file build-log-default.txt)

      Probe upgrade gradle to 3.2.0 and give also not workable apk in android (file build-log-3.2.0.txt attached)

      And as final build with default 3.5.0 and 3.5.2 gradle for Qt 5.14 release and give error:
      Initialized native services in: /root/.gradle/native
      Creating new cache for fileHashes, path /root/.gradle/caches/3.4/fileHashes/fileHashes.bin, access org.gradle.cache.internal.DefaultCacheAccess@7357a011
      Creating new cache for plugin-use-metadata, path /root/.gradle/caches/3.4/plugin-resolution/plugin-use-metadata.bin, access org.gradle.cache.internal.DefaultCacheAccess@71529963
      Creating new cache for client-status, path /root/.gradle/caches/3.4/plugin-resolution/client-status.bin, access org.gradle.cache.internal.DefaultCacheAccess@71529963
      Starting Build
      Settings evaluated using settings file '/master/settings.gradle'.
      Projects loaded. Root project using build file '/ekkesSHAREexample/android-build/build.gradle'.
      Included projects: [root project 'android-build']
      Evaluating root project 'android-build' using build file '/ekkesSHAREexample/android-build/build.gradle'.
      Compiling build file '/ekkesSHAREexample/android-build/build.gradle' using SubsetScriptTransformer.

      FAILURE: Build failed with an exception.

      • Where:
        Build file '/ekkesSHAREexample/android-build/build.gradle' line: 3
      • What went wrong:
        A problem occurred evaluating root project 'android-build'.
        > Could not find method google() for arguments [] on repository container of type org.gradle.api.internal.artifacts.dsl.DefaultRepositoryHandler.
      • Try:
        Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.

      BUILD FAILED

      Apk not created. For Qt 5.14.0 users can't build this application with default gradle (3.5.0) for Qt 5.14 version!!!

      Adb logcat for booth version apk (with gradle from github version 2.2.3 and with version 3.2.0) file share-qt-514-adb.log

        1. share-qt-514-adb.log
          74 kB
        2. release-10mb.ab
          639 kB
        3. release-10mb.aa
          10.00 MB
        4. photo_2019-11-18_00-15-28.jpg
          photo_2019-11-18_00-15-28.jpg
          24 kB
        5. build-log-default.txt
          258 kB
        6. buildlog5140-rc.txt
          984 kB
        7. build-log-3.2.0.txt
          253 kB
        8. buildlog_gradle551.txt
          1.38 MB
        9. build.log
          325 kB
        10. android-emulator.png
          android-emulator.png
          89 kB
        11. agb-log-updated.txt
          28 kB
        12. abd-log-app-gitversion.txt
          13 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            ekkescorner Ekkehard
            homdx Homdx Homdx
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes