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

Android: Cannot build using API 26 (null returned: 139)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.9.1
    • QPA
    • None
    • Debian 8 (Jessie) amd64
      Qt 5.9.1 from Online installer
      Qt Creator 4.3.1
      Android SDK Tools 25.2.5
      Android Platform Tools 26
      Android NDK r10e
    • Android

    Description

      I tried to build quickcontrols2/gallery example using Android SDK 26 build tools, I get this output (25 works fine):

      16:14:37: Running steps for project gallery...
      
      16:14:37: Starting: "/usr/bin/make" clean
      
      rm -f qrc_qmake_qmake_immediate.cpp
      
      rm -f moc_predefs.h
      
      rm -f gallery.o qrc_qmake_qmake_immediate.o
      
      rm -f *~ core *.core
      
      16:14:37: The process "/usr/bin/make" exited normally.
      
      16:14:37: Configuration unchanged, skipping qmake step.
      
      16:14:37: Starting: "/usr/bin/make"
      
      /opt/android-ndk-r10e/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/i686-linux-android-g++ -c -fstack-protector-strong -DANDROID --sysroot=/opt/android-ndk-r10e/platforms/android-16/arch-x86/ -g -g -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_QUICKCONTROLS2_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../gallery -I. -I../../../../5.9.1/android_x86/include -I../../../../5.9.1/android_x86/include/QtQuickControls2 -I../../../../5.9.1/android_x86/include/QtQuick -I../../../../5.9.1/android_x86/include/QtGui -I../../../../5.9.1/android_x86/include/QtQml -I../../../../5.9.1/android_x86/include/QtNetwork -I../../../../5.9.1/android_x86/include/QtCore -I. -I/opt/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include -I/opt/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86/include -isystem /opt/android-ndk-r10e/platforms/android-16/arch-x86/usr/include -I../../../../5.9.1/android_x86/mkspecs/android-g++ -o gallery.o ../gallery/gallery.cpp
      
      /opt/Qt/5.9.1/android_x86/bin/rcc -name qmake_qmake_immediate qmake_qmake_immediate.qrc -o qrc_qmake_qmake_immediate.cpp
      
      /opt/android-ndk-r10e/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/i686-linux-android-g++ -c -fstack-protector-strong -DANDROID --sysroot=/opt/android-ndk-r10e/platforms/android-16/arch-x86/ -g -g -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_QUICKCONTROLS2_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../gallery -I. -I../../../../5.9.1/android_x86/include -I../../../../5.9.1/android_x86/include/QtQuickControls2 -I../../../../5.9.1/android_x86/include/QtQuick -I../../../../5.9.1/android_x86/include/QtGui -I../../../../5.9.1/android_x86/include/QtQml -I../../../../5.9.1/android_x86/include/QtNetwork -I../../../../5.9.1/android_x86/include/QtCore -I. -I/opt/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include -I/opt/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86/include -isystem /opt/android-ndk-r10e/platforms/android-16/arch-x86/usr/include -I../../../../5.9.1/android_x86/mkspecs/android-g++ -o qrc_qmake_qmake_immediate.o qrc_qmake_qmake_immediate.cpp
      
      /opt/android-ndk-r10e/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/i686-linux-android-g++ --sysroot=/opt/android-ndk-r10e/platforms/android-16/arch-x86/ -Wl,-soname,libgallery.so -Wl,-rpath=/opt/Qt/5.9.1/android_x86/lib -Wl,-rpath-link=/opt/Qt/5.9.1/android_x86/lib -Wl,--no-undefined -Wl,-z,noexecstack -shared -o libgallery.so gallery.o qrc_qmake_qmake_immediate.o -L/opt/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86 -L/opt/android-ndk-r10e/platforms/android-16/arch-x86//usr/lib -L/opt/android-ndk-r10e/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/i686-linux-android/4.9 -L/opt/Qt/5.9.1/android_x86/lib -lQt5QuickControls2 -L/opt/android/ndk/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86 -L/opt/android/ndk/platforms/android-16/arch-x86//usr/lib -L/opt/android/ndk/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/i686-linux-android/4.9 -lQt5Quick -lQt5Gui -lQt5Qml -lQt5Network -lQt5Core -lGLESv2 -lgnustl_shared -llog -lz -lm -ldl -lc -lgcc
      
      16:14:39: The process "/usr/bin/make" exited normally.
      
      16:14:39: Removing directory /opt/Qt/Examples/Qt-5.9.1/quickcontrols2/build-gallery-Android_for_x86_GCC_4_9_Qt_5_9_1_for_Android_x86-Debug/android-build
      
      16:14:39: Starting: "/usr/bin/make" INSTALL_ROOT=/opt/Qt/Examples/Qt-5.9.1/quickcontrols2/build-gallery-Android_for_x86_GCC_4_9_Qt_5_9_1_for_Android_x86-Debug/android-build install
      
      /opt/Qt/5.9.1/android_x86/bin/qmake -install qinstall -exe libgallery.so /opt/Qt/Examples/Qt-5.9.1/quickcontrols2/build-gallery-Android_for_x86_GCC_4_9_Qt_5_9_1_for_Android_x86-Debug/android-build/libs/x86/libgallery.so
      
      16:14:40: The process "/usr/bin/make" exited normally.
      
      16:14:40: Starting: "/opt/Qt/5.9.1/android_x86/bin/androiddeployqt" --input /opt/Qt/Examples/Qt-5.9.1/quickcontrols2/build-gallery-Android_for_x86_GCC_4_9_Qt_5_9_1_for_Android_x86-Debug/android-libgallery.so-deployment-settings.json --output /opt/Qt/Examples/Qt-5.9.1/quickcontrols2/build-gallery-Android_for_x86_GCC_4_9_Qt_5_9_1_for_Android_x86-Debug/android-build --deployment bundled --android-platform android-26 --jdk /usr/lib/jvm/java-8-openjdk-amd64 --ant /usr/bin/ant
      
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Universal.impl
      
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.impl
      
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Material.impl
      
      Generating Android Package
      
      Input file: /opt/Qt/Examples/Qt-5.9.1/quickcontrols2/build-gallery-Android_for_x86_GCC_4_9_Qt_5_9_1_for_Android_x86-Debug/android-libgallery.so-deployment-settings.json
      
      Output directory: /opt/Qt/Examples/Qt-5.9.1/quickcontrols2/build-gallery-Android_for_x86_GCC_4_9_Qt_5_9_1_for_Android_x86-Debug/android-build/
      
      Application binary: /opt/Qt/Examples/Qt-5.9.1/quickcontrols2/build-gallery-Android_for_x86_GCC_4_9_Qt_5_9_1_for_Android_x86-Debug/libgallery.so
      
      Android build platform: android-26
      
      Install to device: No
      
      Buildfile: /opt/Qt/Examples/Qt-5.9.1/quickcontrols2/build-gallery-Android_for_x86_GCC_4_9_Qt_5_9_1_for_Android_x86-Debug/android-build/build.xml
      
      
      
      
      -set-mode-check:
      
      
      
      
      -set-debug-files:
      
      
      
      
      -check-env:
      
      [checkenv] Android SDK Tools Revision 25.2.5
      
      [checkenv] Installed at /opt/android-sdk-linux
      
      
      
      
      -setup:
      
      [echo] Project Name: QtApp
      
      [gettype] Project Type: Application
      
      
      
      
      -set-debug-mode:
      
      
      
      
      -debug-obfuscation-check:
      
      
      
      
      -pre-build:
      
      
      
      
      -build-setup:
      
      [getbuildtools] Using latest Build Tools: 24.0.3
      
      [echo] Resolving Build Target for QtApp...
      
      [gettarget] Project Target: Android 8.0.0
      
      [gettarget] API level: 26
      
      [echo] ----------
      
      [echo] Creating output directories if needed...
      
      [mkdir] Created dir: /opt/Qt/Examples/Qt-5.9.1/quickcontrols2/build-gallery-Android_for_x86_GCC_4_9_Qt_5_9_1_for_Android_x86-Debug/android-build/bin
      
      [mkdir] Created dir: /opt/Qt/Examples/Qt-5.9.1/quickcontrols2/build-gallery-Android_for_x86_GCC_4_9_Qt_5_9_1_for_Android_x86-Debug/android-build/bin/res
      
      [mkdir] Created dir: /opt/Qt/Examples/Qt-5.9.1/quickcontrols2/build-gallery-Android_for_x86_GCC_4_9_Qt_5_9_1_for_Android_x86-Debug/android-build/bin/rsObj
      
      [mkdir] Created dir: /opt/Qt/Examples/Qt-5.9.1/quickcontrols2/build-gallery-Android_for_x86_GCC_4_9_Qt_5_9_1_for_Android_x86-Debug/android-build/bin/rsLibs
      
      [mkdir] Created dir: /opt/Qt/Examples/Qt-5.9.1/quickcontrols2/build-gallery-Android_for_x86_GCC_4_9_Qt_5_9_1_for_Android_x86-Debug/android-build/gen
      
      [mkdir] Created dir: /opt/Qt/Examples/Qt-5.9.1/quickcontrols2/build-gallery-Android_for_x86_GCC_4_9_Qt_5_9_1_for_Android_x86-Debug/android-build/bin/classes
      
      [mkdir] Created dir: /opt/Qt/Examples/Qt-5.9.1/quickcontrols2/build-gallery-Android_for_x86_GCC_4_9_Qt_5_9_1_for_Android_x86-Debug/android-build/bin/dexedLibs
      
      [echo] ----------
      
      [echo] Resolving Dependencies for QtApp...
      
      [dependency] Library dependencies:
      
      [dependency] No Libraries
      
      [dependency]
      
      [dependency] ------------------
      
      [echo] ----------
      
      [echo] Building Libraries with 'debug'...
      
      [subant] No sub-builds to iterate on
      
      
      
      
      -code-gen:
      
      [mergemanifest] Merging AndroidManifest files into one.
      
      [mergemanifest] Manifest merger disabled. Using project manifest only.
      
      [echo] Handling aidl files...
      
      [aidl] Found 2 AIDL files.
      
      [aidl] Compiling 2 AIDL files.
      
      [echo] ----------
      
      [echo] Handling RenderScript files...
      
      [echo] ----------
      
      [echo] Handling Resources...
      
      [aapt] Generating resource IDs...
      
      
      
      
      BUILD FAILED
      
      /opt/android-sdk-linux/tools/ant/build.xml:649: The following error occurred while executing this line:
      
      /opt/android-sdk-linux/tools/ant/build.xml:694: null returned: 139
      
      
      
      
      Total time: 1 second
      
      Building the android package failed!
      
      -- For more information, run this command with --verbose.
      
      16:14:43: The process "/opt/Qt/5.9.1/android_x86/bin/androiddeployqt" exited with code 14.
      
      Error while building/deploying project gallery (kit: Android for x86 (GCC 4.9, Qt 5.9.1 for Android x86))
      
      When executing step "Build Android APK"
      
      16:14:43: Elapsed time: 00:07.
      

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            talkless Vincas Dargis
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes