Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

androiddeployqt exited with code 11



  • Hello

    I just installed Qt 5.15.0 and I can't compile a simple button gui application for Android

    I install all default SDK,NDK and so without problems but I get a error in androiddeployqt.

    Error 11 means CannotCopyAndroidSources but I don't know what it means. It seems like something is missing to install.

    Thanks in advance.

    19:41:08: Running steps for project android1...
    19:41:08: Starting: "/home/user/proys/Qt/5.15.0/android/bin/qmake" /home/user/proys/qtproys/android1/android1.pro -spec android-clang CONFIG+=debug CONFIG+=qml_debug ANDROID_ABIS=armeabi-v7a
    Info: creating stash file /home/user/proys/qtproys/build-android1-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_15_0_for_Android-Debug/.qmake.stash
    19:41:08: The process "/home/user/proys/Qt/5.15.0/android/bin/qmake" exited normally.
    19:41:08: Starting: "/home/user/proys/android-sdk/ndk/21.1.6352462/prebuilt/linux-x86_64/bin/make" -f /home/user/proys/qtproys/build-android1-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_15_0_for_Android-Debug/Makefile qmake_all
    make: Nothing to be done for 'qmake_all'.
    19:41:08: The process "/home/user/proys/android-sdk/ndk/21.1.6352462/prebuilt/linux-x86_64/bin/make" exited normally.
    19:41:08: Starting: "/home/user/proys/android-sdk/ndk/21.1.6352462/prebuilt/linux-x86_64/bin/make" -j8
    /home/user/proys/Qt/5.15.0/android/bin/uic ../android1/widget.ui -o ui_widget.h
    /home/user/proys/android-sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -c -target armv7a-linux-androideabi21 -fno-limit-debug-info -fPIC -fstack-protector-strong -DANDROID -g -marm -O0 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../android1 -I. -I../../Qt/5.15.0/android/include -I../../Qt/5.15.0/android/include/QtWidgets -I../../Qt/5.15.0/android/include/QtGui -I../../Qt/5.15.0/android/include/QtCore -Iarmeabi-v7a -I. -I../../Qt/5.15.0/android/mkspecs/android-clang -o armeabi-v7a/main.o ../android1/main.cpp
    /home/user/proys/android-sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -c -target armv7a-linux-androideabi21 -fno-limit-debug-info -fPIC -fstack-protector-strong -DANDROID -g -marm -O0 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../android1 -I. -I../../Qt/5.15.0/android/include -I../../Qt/5.15.0/android/include/QtWidgets -I../../Qt/5.15.0/android/include/QtGui -I../../Qt/5.15.0/android/include/QtCore -Iarmeabi-v7a -I. -I../../Qt/5.15.0/android/mkspecs/android-clang -o armeabi-v7a/widget.o ../android1/widget.cpp
    /home/user/proys/android-sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -target armv7a-linux-androideabi21 -fno-limit-debug-info -fPIC -fstack-protector-strong -DANDROID -g -marm -O0 -std=gnu++11 -Wall -W -dM -E -o armeabi-v7a/moc_predefs.h ../../Qt/5.15.0/android/mkspecs/features/data/dummy.cpp
    /home/user/proys/Qt/5.15.0/android/bin/moc -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB --include /home/user/proys/qtproys/build-android1-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_15_0_for_Android-Debug/armeabi-v7a/moc_predefs.h -I/home/user/proys/Qt/5.15.0/android/mkspecs/android-clang -I/home/user/proys/qtproys/android1 -I/home/user/proys/Qt/5.15.0/android/include -I/home/user/proys/Qt/5.15.0/android/include/QtWidgets -I/home/user/proys/Qt/5.15.0/android/include/QtGui -I/home/user/proys/Qt/5.15.0/android/include/QtCore -I. -I/usr/include/c++/7.5.0 -I/usr/include/x86_64-linux-gnu/c++/7.5.0 -I/usr/include/c++/7.5.0/backward -I/usr/local/include -I/home/user/proys/android-sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/9.0.8/include -I/usr/include/x86_64-linux-gnu -I/usr/include ../android1/widget.h -o armeabi-v7a/moc_widget.cpp
    /home/user/proys/android-sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -c -target armv7a-linux-androideabi21 -fno-limit-debug-info -fPIC -fstack-protector-strong -DANDROID -g -marm -O0 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../android1 -I. -I../../Qt/5.15.0/android/include -I../../Qt/5.15.0/android/include/QtWidgets -I../../Qt/5.15.0/android/include/QtGui -I../../Qt/5.15.0/android/include/QtCore -Iarmeabi-v7a -I. -I../../Qt/5.15.0/android/mkspecs/android-clang -o armeabi-v7a/moc_widget.o armeabi-v7a/moc_widget.cpp
    /home/user/proys/android-sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -target armv7a-linux-androideabi21 -fno-limit-debug-info -Wl,-soname,libandroid1_armeabi-v7a.so -Wl,--build-id=sha1 -Wl,--no-undefined -Wl,-z,noexecstack -shared -o libandroid1_armeabi-v7a.so armeabi-v7a/main.o armeabi-v7a/widget.o armeabi-v7a/moc_widget.o   /home/user/proys/Qt/5.15.0/android/lib/libQt5Widgets_armeabi-v7a.so /home/user/proys/Qt/5.15.0/android/lib/libQt5Gui_armeabi-v7a.so /home/user/proys/Qt/5.15.0/android/lib/libQt5Core_armeabi-v7a.so -lGLESv2   -llog -lz -lm -ldl -lc
    19:41:10: The process "/home/user/proys/android-sdk/ndk/21.1.6352462/prebuilt/linux-x86_64/bin/make" exited normally.
    19:41:10: Starting: "/home/user/proys/android-sdk/ndk/21.1.6352462/prebuilt/linux-x86_64/bin/make" INSTALL_ROOT=/home/user/proys/qtproys/build-android1-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_15_0_for_Android-Debug/android-build install
    /home/user/proys/Qt/5.15.0/android/bin/qmake -install qinstall -exe libandroid1_armeabi-v7a.so /home/user/proys/qtproys/build-android1-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_15_0_for_Android-Debug/android-build/libs/armeabi-v7a/libandroid1_armeabi-v7a.so
    19:41:10: The process "/home/user/proys/android-sdk/ndk/21.1.6352462/prebuilt/linux-x86_64/bin/make" exited normally.
    19:41:10: Starting: "/home/user/proys/Qt/5.15.0/android/bin/androiddeployqt" --input /home/user/proys/qtproys/build-android1-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_15_0_for_Android-Debug/android-android1-deployment-settings.json --output /home/user/proys/qtproys/build-android1-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_15_0_for_Android-Debug/android-build --android-platform android-29 --jdk /usr/lib/jvm/java-8-openjdk-amd64 --gradle
    Generating Android Package
      Input file: /home/user/proys/qtproys/build-android1-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_15_0_for_Android-Debug/android-android1-deployment-settings.json
      Output directory: /home/user/proys/qtproys/build-android1-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_15_0_for_Android-Debug/android-build/
      Application binary: android1
      Android build platform: android-29
      Install to device: No
    Cannot find android sources in /home/user/proys/qtproys/android1/android  -- Skipping /home/user/proys/Qt/5.15.0/android/plugins/iconengines/libplugins_iconengines_qsvgicon_armeabi-v7a.so. It has unmet dependencies: lib/libQt5Svg_armeabi-v7a.so.
      -- Skipping /home/user/proys/Qt/5.15.0/android/plugins/imageformats/libplugins_imageformats_qsvg_armeabi-v7a.so. It has unmet dependencies: lib/libQt5Svg_armeabi-v7a.so.
    Skipping createRCC
    19:41:10: The process "/home/user/proys/Qt/5.15.0/android/bin/androiddeployqt" exited with code 11.
    Error while building/deploying project android1 (kit: Android for armeabi-v7a,arm64-v8a,x86,x86_64 (Clang Qt 5.15.0 for Android))
    When executing step "Build Android APK"
    19:41:10: Elapsed time: 00:02.
    
    
    
    


  • It seem that is necessary push "Create Templates" button in Build Android APK section if you reuse a old proyecto



  • It seem that is necessary push "Create Templates" button in Build Android APK section if you reuse a old proyecto


Log in to reply