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

[Android] Examples from 5.4 RC don't deploy using gradle

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • 5.4.0 RC
    • QPA
    • None
    • Android

    Description

      I have used the following RC package: qt-enterprise-linux-x64-android-5.4.0-rc_2014-11-13_13-34-01-89.run

      Environment: Ubuntu 14.04

      Steps to reproduce:
      1.) Download and install package
      2.) Start QtCreator that comes with the package
      3.) Select an example from the example page and try to build and deploy it. I used the concentriccircles and lowenergyscanner examples.

      Outcome: The example builds just fine but fails to deploy with the following output:

      10:11:04: Running steps for project concentriccircles...
      10:11:04: Configuration unchanged, skipping qmake step.
      10:11:04: Starting: "/usr/bin/make" 
      make: Nothing to be done for `first'.
      10:11:04: The process "/usr/bin/make" exited normally.
      10:11:04: Removing directory /home/ablasche/Qt5.4.0/Examples/Qt-5.4/widgets/painting/build-concentriccircles-Android_for_armeabi_v7a_GCC_4_8_Qt_5_4_0_RC-Debug/android-build/assets
      10:11:04: Removing directory /home/ablasche/Qt5.4.0/Examples/Qt-5.4/widgets/painting/build-concentriccircles-Android_for_armeabi_v7a_GCC_4_8_Qt_5_4_0_RC-Debug/android-build/libs
      10:11:04: Starting: "/usr/bin/make" INSTALL_ROOT=/home/ablasche/Qt5.4.0/Examples/Qt-5.4/widgets/painting/build-concentriccircles-Android_for_armeabi_v7a_GCC_4_8_Qt_5_4_0_RC-Debug/android-build install
      install -m 755 -p "libconcentriccircles.so" "/home/ablasche/Qt5.4.0/Examples/Qt-5.4/widgets/painting/build-concentriccircles-Android_for_armeabi_v7a_GCC_4_8_Qt_5_4_0_RC-Debug/android-build/libs/armeabi-v7a/libconcentriccircles.so"
      10:11:04: The process "/usr/bin/make" exited normally.
      10:11:04: Starting: "/home/ablasche/Qt5.4.0/5.4/android_armv7/bin/androiddeployqt" --input /home/ablasche/Qt5.4.0/Examples/Qt-5.4/widgets/painting/build-concentriccircles-Android_for_armeabi_v7a_GCC_4_8_Qt_5_4_0_RC-Debug/android-libconcentriccircles.so-deployment-settings.json --output /home/ablasche/Qt5.4.0/Examples/Qt-5.4/widgets/painting/build-concentriccircles-Android_for_armeabi_v7a_GCC_4_8_Qt_5_4_0_RC-Debug/android-build --deployment debug --android-platform android-21 --jdk /usr/lib/jvm/java-6-openjdk-amd64/jre --verbose --gradle
      Generating Android Package
        Input file: /home/ablasche/Qt5.4.0/Examples/Qt-5.4/widgets/painting/build-concentriccircles-Android_for_armeabi_v7a_GCC_4_8_Qt_5_4_0_RC-Debug/android-libconcentriccircles.so-deployment-settings.json
        Output directory: /home/ablasche/Qt5.4.0/Examples/Qt-5.4/widgets/painting/build-concentriccircles-Android_for_armeabi_v7a_GCC_4_8_Qt_5_4_0_RC-Debug/android-build/
        Application binary: /home/ablasche/Qt5.4.0/Examples/Qt-5.4/widgets/painting/build-concentriccircles-Android_for_armeabi_v7a_GCC_4_8_Qt_5_4_0_RC-Debug/libconcentriccircles.so
        Android build platform: android-21
        Install to device: No
      Delete missing files /home/ablasche/Qt5.4.0/5.4/android_armv7/src/android/templates/res /home/ablasche/Qt5.4.0/Examples/Qt-5.4/widgets/painting/build-concentriccircles-Android_for_armeabi_v7a_GCC_4_8_Qt_5_4_0_RC-Debug/android-build/res
      Delete missing files /home/ablasche/Qt5.4.0/5.4/android_armv7/src/android/templates/res/values /home/ablasche/Qt5.4.0/Examples/Qt-5.4/widgets/painting/build-concentriccircles-Android_for_armeabi_v7a_GCC_4_8_Qt_5_4_0_RC-Debug/android-build/res/values
      Delete missing files /home/ablasche/Qt5.4.0/5.4/android_armv7/src/android/java/res /home/ablasche/Qt5.4.0/Examples/Qt-5.4/widgets/painting/build-concentriccircles-Android_for_armeabi_v7a_GCC_4_8_Qt_5_4_0_RC-Debug/android-build/__qt5__android__files__res
      Delete missing files /home/ablasche/Qt5.4.0/5.4/android_armv7/src/android/java/src /home/ablasche/Qt5.4.0/Examples/Qt-5.4/widgets/painting/build-concentriccircles-Android_for_armeabi_v7a_GCC_4_8_Qt_5_4_0_RC-Debug/android-build/__qt5__android__files__src
      Copying Android package template.
        -- Skipping file /home/ablasche/java/android-sdk-linux/tools/templates/gradle/wrapper/gradle/wrapper/gradle-wrapper.jar. Same or newer file already in place.
        -- Skipping file /home/ablasche/java/android-sdk-linux/tools/templates/gradle/wrapper/gradle/wrapper/gradle-wrapper.properties. Same or newer file already in place.
        -- Skipping file /home/ablasche/java/android-sdk-linux/tools/templates/gradle/wrapper/gradlew. Same or newer file already in place.
        -- Skipping file /home/ablasche/java/android-sdk-linux/tools/templates/gradle/wrapper/gradlew.bat. Same or newer file already in place.
        -- Copied /home/ablasche/Qt5.4.0/Examples/Qt-5.4/widgets/painting/build-concentriccircles-Android_for_armeabi_v7a_GCC_4_8_Qt_5_4_0_RC-Debug/android-build/AndroidManifest.xml
        -- Copied /home/ablasche/Qt5.4.0/Examples/Qt-5.4/widgets/painting/build-concentriccircles-Android_for_armeabi_v7a_GCC_4_8_Qt_5_4_0_RC-Debug/android-build/res/values/libs.xml
        -- Skipping file /home/ablasche/Qt5.4.0/5.4/android_armv7/src/android/java/res/layout/splash.xml. Same or newer file already in place.
        -- Copied /home/ablasche/Qt5.4.0/Examples/Qt-5.4/widgets/painting/build-concentriccircles-Android_for_armeabi_v7a_GCC_4_8_Qt_5_4_0_RC-Debug/android-build/__qt5__android__files__/res/values/strings.xml
        -- Skipping file /home/ablasche/Qt5.4.0/5.4/android_armv7/src/android/java/res/values-de/strings.xml. Same or newer file already in place.
        -- Skipping file /home/ablasche/Qt5.4.0/5.4/android_armv7/src/android/java/res/values-el/strings.xml. Same or newer file already in place.
        -- Skipping file /home/ablasche/Qt5.4.0/5.4/android_armv7/src/android/java/res/values-es/strings.xml. Same or newer file already in place.
        -- Skipping file /home/ablasche/Qt5.4.0/5.4/android_armv7/src/android/java/res/values-et/strings.xml. Same or newer file already in place.
        -- Skipping file /home/ablasche/Qt5.4.0/5.4/android_armv7/src/android/java/res/values-fa/strings.xml. Same or newer file already in place.
        -- Skipping file /home/ablasche/Qt5.4.0/5.4/android_armv7/src/android/java/res/values-fr/strings.xml. Same or newer file already in place.
        -- Skipping file /home/ablasche/Qt5.4.0/5.4/android_armv7/src/android/java/res/values-id/strings.xml. Same or newer file already in place.
        -- Skipping file /home/ablasche/Qt5.4.0/5.4/android_armv7/src/android/java/res/values-it/strings.xml. Same or newer file already in place.
        -- Skipping file /home/ablasche/Qt5.4.0/5.4/android_armv7/src/android/java/res/values-ja/strings.xml. Same or newer file already in place.
        -- Skipping file /home/ablasche/Qt5.4.0/5.4/android_armv7/src/android/java/res/values-ms/strings.xml. Same or newer file already in place.
        -- Skipping file /home/ablasche/Qt5.4.0/5.4/android_armv7/src/android/java/res/values-nb/strings.xml. Same or newer file already in place.
        -- Skipping file /home/ablasche/Qt5.4.0/5.4/android_armv7/src/android/java/res/values-nl/strings.xml. Same or newer file already in place.
        -- Skipping file /home/ablasche/Qt5.4.0/5.4/android_armv7/src/android/java/res/values-pl/strings.xml. Same or newer file already in place.
        -- Skipping file /home/ablasche/Qt5.4.0/5.4/android_armv7/src/android/java/res/values-pt-rBR/strings.xml. Same or newer file already in place.
        -- Skipping file /home/ablasche/Qt5.4.0/5.4/android_armv7/src/android/java/res/values-ro/strings.xml. Same or newer file already in place.
        -- Skipping file /home/ablasche/Qt5.4.0/5.4/android_armv7/src/android/java/res/values-rs/strings.xml. Same or newer file already in place.
        -- Skipping file /home/ablasche/Qt5.4.0/5.4/android_armv7/src/android/java/res/values-ru/strings.xml. Same or newer file already in place.
        -- Skipping file /home/ablasche/Qt5.4.0/5.4/android_armv7/src/android/java/res/values-zh-rCN/strings.xml. Same or newer file already in place.
        -- Skipping file /home/ablasche/Qt5.4.0/5.4/android_armv7/src/android/java/res/values-zh-rTW/strings.xml. Same or newer file already in place.
        -- Skipping file /home/ablasche/Qt5.4.0/5.4/android_armv7/src/android/java/src/org/kde/necessitas/ministro/IMinistro.aidl. Same or newer file already in place.
        -- Skipping file /home/ablasche/Qt5.4.0/5.4/android_armv7/src/android/java/src/org/kde/necessitas/ministro/IMinistroCallback.aidl. Same or newer file already in place.
        -- Copied /home/ablasche/Qt5.4.0/Examples/Qt-5.4/widgets/painting/build-concentriccircles-Android_for_armeabi_v7a_GCC_4_8_Qt_5_4_0_RC-Debug/android-build/__qt5__android__files__/src/org/qtproject/qt5/android/bindings/QtActivity.java
        -- Skipping file /home/ablasche/Qt5.4.0/5.4/android_armv7/src/android/java/src/org/qtproject/qt5/android/bindings/QtApplication.java. Same or newer file already in place.
      Detecting dependencies of application.
      Reading dependencies from /home/ablasche/Qt5.4.0/Examples/Qt-5.4/widgets/painting/build-concentriccircles-Android_for_armeabi_v7a_GCC_4_8_Qt_5_4_0_RC-Debug/libconcentriccircles.so
            lib/libQt5Widgets.so
            lib/libQt5Gui.so
            lib/libQt5Core.so
      Reading dependencies from /home/ablasche/Qt5.4.0/5.4/android_armv7/lib/libQt5Widgets.so
            lib/libQt5Gui.so
            lib/libQt5Core.so
      Reading dependencies from /home/ablasche/Qt5.4.0/5.4/android_armv7/lib/libQt5Gui.so
            lib/libQt5Core.so
      Reading dependencies from /home/ablasche/Qt5.4.0/5.4/android_armv7/lib/libQt5Core.so
      Appending dependency: lib/libQt5Core.so
      Reading Android dependencies for Qt5Core
      Appending dependency: lib/libQt5Gui.so
      Reading Android dependencies for Qt5Gui
      Appending dependency from xml: plugins/platforms/android/libqtforandroid.so
      Appending dependency from xml: plugins/platforms/libqeglfs.so
      Appending dependency from xml: plugins/platforms/libqminimal.so
      Appending dependency from xml: plugins/platforms/libqminimalegl.so
      Appending dependency from xml: plugins/platforms/libqoffscreen.so
      Appending dependency from xml: plugins/generic/libqevdevkeyboardplugin.so
      Appending dependency from xml: plugins/generic/libqevdevmouseplugin.so
      Appending dependency from xml: plugins/generic/libqevdevtabletplugin.so
      Appending dependency from xml: plugins/generic/libqevdevtouchplugin.so
      Appending dependency from xml: plugins/iconengines/libqsvgicon.so
      Appending dependency from xml: plugins/imageformats/libqdds.so
      Appending dependency from xml: plugins/imageformats/libqgif.so
      Appending dependency from xml: plugins/imageformats/libqicns.so
      Appending dependency from xml: plugins/imageformats/libqico.so
      Appending dependency from xml: plugins/imageformats/libqjp2.so
      Appending dependency from xml: plugins/imageformats/libqjpeg.so
      Appending dependency from xml: plugins/imageformats/libqmng.so
      Appending dependency from xml: plugins/imageformats/libqsvg.so
      Appending dependency from xml: plugins/imageformats/libqtga.so
      Appending dependency from xml: plugins/imageformats/libqtiff.so
      Appending dependency from xml: plugins/imageformats/libqwbmp.so
      Appending dependency: lib/libQt5Widgets.so
      Reading Android dependencies for Qt5Widgets
      Reading dependencies from /home/ablasche/Qt5.4.0/5.4/android_armv7/plugins/platforms/android/libqtforandroid.so
            lib/libQt5Gui.so
            lib/libQt5Core.so
      Scanning for QML imports.
      Copying 26 dependencies from Qt to device.
      Checking if application binary is in package.
      Copying gdbserver into package.
        -- Copied /home/ablasche/Qt5.4.0/Examples/Qt-5.4/widgets/painting/build-concentriccircles-Android_for_armeabi_v7a_GCC_4_8_Qt_5_4_0_RC-Debug/android-build//libs/armeabi-v7a/gdbserver
        -- Copied /home/ablasche/Qt5.4.0/Examples/Qt-5.4/widgets/painting/build-concentriccircles-Android_for_armeabi_v7a_GCC_4_8_Qt_5_4_0_RC-Debug/android-build//libs/armeabi-v7a/libgdbserver.so
      Stripping libraries to minimize size.
      Updating Android package files with project settings.
        -- res/values/libs.xml
        -- AndroidManifest.xml 
        -- /src/org/qtproject/qt5/android/bindings/QtActivity.java
      Pregenerating entry list for assets file engine.
      Starting Build
      Settings evaluated using empty settings script.
      Projects loaded. Root project using empty build file.
      Included projects: [root project 'android-build']
      Evaluating root project 'android-build' using empty build file.
      All projects evaluated.
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Task 'assembleDebug' not found in root project 'android-build'.
      
      * Try:
      Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
      
      BUILD FAILED
      
      Total time: 1.96 secs
      Building the android package failed!
      10:11:07: The process "/home/ablasche/Qt5.4.0/5.4/android_armv7/bin/androiddeployqt" exited with code 14.
      Error while building/deploying project concentriccircles (kit: Android for armeabi-v7a (GCC 4.8, Qt 5.4.0 RC))
      When executing step "Build Android APK"
      
      

      Some experimenting revealed that this happens only when gradle is used. Unchecking the gradle option and the application deploys just fine.

      Further digging showed that I did not have gradle installed as part of my Ubuntu environment. Hence I did a quick "apt-get install gradle". Even after having installed gradle the deployment fails with the same error.

      Attachments

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              ablasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes