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

Deploying an Android Application problem



  • Hello there,
    I am using the following programs versions:
    Ubuntu x64 18.04
    Qt 5.11.1
    Qt Creator 4.7.0
    android-ndk-r17c
    sdk-tools-linux-4333797

    I can build the android example application (clocks) and it works. The problem is the following: I cannot deploy using Qt creator. 2 problems arised. The first one is that for some reason Qt creator doesnt see the SDK anymore:

    0_1537252034521_1c5fa846-56ae-4e67-81d5-27c73892ac55-obraz.png

    And I can still build android application. The second one is deployment. I have my device connected and visible through adb:

    0_1537252116374_5923c9c5-db29-47e4-ac1f-a09291e6dc4d-obraz.png

    But the deploy step fails with:

    08:29:27: The command "/home/lukasz/android/android-sdk/platform-tools/adb" terminated with exit code 1.
    08:29:27: Package deploy: Failed to pull "/system/bin/app_process" to "/home/lukasz/Qt_desktop/Examples/Qt-5.11.1/quick/demos/build-clocks-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_for_Android_armv7-Debug/app_process".
    

    Full compile output here: https://pastebin.com/VcH4dZni

    I would appreciate all help regarding those issues. Can provide more information if needed.


  • Moderators

    Do you have full SDK installed, or only the sdk-tools?



  • @sierdzio Just sdk tools, no android studio.


  • Moderators

    Install the rest then, should help.



  • @sierdzio I have downloaded the full Android studio package but it does not include the sdk tools inside, ie. sdkmanager. Could you please explain how to do this?


  • Moderators

    Open studio.sh from Android Studio, and SDK manager is in the settings inside it. Once Studio installs the sdk, you should have all the necessary binaries.

    But wait, you mean you do have sdkmanager in your old SDK tools? That's great. Open it and select download some Android platform (for example Android 7), then select corresponding API level when you build your application (in project settings in Qt Creator).



  • @sierdzio But I can build for android, I can output the apk and install it on my android tablet. The device view in wt creator got somehow corrupted. I am able to build for armv7 and x86 android. Please look at my kits:

    0_1537257852135_9a9ae979-64fa-4779-9732-dafbdc0c598f-obraz.png

    After this: https://forum.qt.io/topic/94690/could-not-determine-java-version-from-10-0-2/2 I was able to build and my devices view was ok. After some time I opened it, and it complains about lack of sdk, even though its there and it compiles...


  • Moderators

    OK possibly Google changed something in the SDK again, as they often do :-(

    Please check with some older SDK release. For example:
    http://dl-ssl.google.com/android/repository/tools_r25.2.5-linux.zip



  • @sierdzio Thank you for answer. So I have replaced the SDK with the one you have linked and installed all the necessary tools:

    0_1537260758794_a5422b27-590e-45e9-8d98-6a5bf913f8e9-obraz.png

    In additiona to android-28, I have installed android 7 like can be seen above, also here:

    0_1537260981382_0fc29441-30d8-4e34-9047-77a4a05cb2eb-obraz.png

    Now when trying to deploy I get the exact same error, building apk works. But maybe I should somehow switch to android 24 to android 28? Did that, but the same error :/.

    10:58:11: Running steps for project clocks...
    10:58:11: Configuration unchanged, skipping qmake step.
    10:58:11: Starting: "/home/lukasz/android/android-ndk-r17c/prebuilt/linux-x86_64/bin/make" -j6
    make: Nothing to be done for `first'.
    10:58:11: The process "/home/lukasz/android/android-ndk-r17c/prebuilt/linux-x86_64/bin/make" exited normally.
    10:58:11: Removing directory /home/lukasz/Qt_desktop/Examples/Qt-5.11.1/quick/demos/build-clocks-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_for_Android_armv7-Debug/android-build/assets
    10:58:11: Removing directory /home/lukasz/Qt_desktop/Examples/Qt-5.11.1/quick/demos/build-clocks-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_for_Android_armv7-Debug/android-build/libs
    10:58:11: Starting: "/home/lukasz/android/android-ndk-r17c/prebuilt/linux-x86_64/bin/make" INSTALL_ROOT=/home/lukasz/Qt_desktop/Examples/Qt-5.11.1/quick/demos/build-clocks-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_for_Android_armv7-Debug/android-build install
    /home/lukasz/Qt_desktop/5.11.1/android_armv7/bin/qmake -install qinstall -exe libclocks.so /home/lukasz/Qt_desktop/Examples/Qt-5.11.1/quick/demos/build-clocks-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_for_Android_armv7-Debug/android-build/libs/armeabi-v7a/libclocks.so
    10:58:11: The process "/home/lukasz/android/android-ndk-r17c/prebuilt/linux-x86_64/bin/make" exited normally.
    10:58:11: Starting: "/home/lukasz/Qt_desktop/5.11.1/android_armv7/bin/androiddeployqt" --input /home/lukasz/Qt_desktop/Examples/Qt-5.11.1/quick/demos/build-clocks-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_for_Android_armv7-Debug/android-libclocks.so-deployment-settings.json --output /home/lukasz/Qt_desktop/Examples/Qt-5.11.1/quick/demos/build-clocks-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_for_Android_armv7-Debug/android-build --android-platform android-24 --jdk /home/lukasz/android/jdk1.8.0_181 --gradle
    Generating Android Package
      Input file: /home/lukasz/Qt_desktop/Examples/Qt-5.11.1/quick/demos/build-clocks-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_for_Android_armv7-Debug/android-libclocks.so-deployment-settings.json
      Output directory: /home/lukasz/Qt_desktop/Examples/Qt-5.11.1/quick/demos/build-clocks-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_for_Android_armv7-Debug/android-build/
      Application binary: /home/lukasz/Qt_desktop/Examples/Qt-5.11.1/quick/demos/build-clocks-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_for_Android_armv7-Debug/libclocks.so
      Android build platform: android-24
      Install to device: No
      -- Skipping /home/lukasz/Qt_desktop/5.11.1/android_armv7/plugins/iconengines/libqsvgicon.so. It has unmet dependencies: lib/libQt5Svg.so,lib/libQt5Widgets.so.
      -- Skipping /home/lukasz/Qt_desktop/5.11.1/android_armv7/plugins/imageformats/libqsvg.so. It has unmet dependencies: lib/libQt5Svg.so,lib/libQt5Widgets.so.
    The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
    The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
    :preBuild UP-TO-DATE
    :preDebugBuild UP-TO-DATE
    :checkDebugManifest
    :prepareDebugDependencies
    :compileDebugAidl UP-TO-DATE
    :compileDebugRenderscript UP-TO-DATE
    :generateDebugBuildConfig UP-TO-DATE
    :generateDebugResValues UP-TO-DATE
    :generateDebugResources UP-TO-DATE
    :mergeDebugResources UP-TO-DATE
    :processDebugManifest UP-TO-DATE
    :processDebugResources UP-TO-DATE
    :generateDebugSources UP-TO-DATE
    :incrementalDebugJavaCompilationSafeguard UP-TO-DATE
    :compileDebugJavaWithJavac UP-TO-DATE
    :compileDebugNdk NO-SOURCE
    :compileDebugSources UP-TO-DATE
    :mergeDebugShaders UP-TO-DATE
    :compileDebugShaders UP-TO-DATE
    :generateDebugAssets UP-TO-DATE
    :mergeDebugAssets UP-TO-DATE
    :transformClassesWithDexForDebug UP-TO-DATE
    :mergeDebugJniLibFolders UP-TO-DATE
    :transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
    :processDebugJavaRes NO-SOURCE
    :transformResourcesWithMergeJavaResForDebug UP-TO-DATE
    :validateSigningDebug
    :packageDebug UP-TO-DATE
    :assembleDebug UP-TO-DATE
    
    BUILD SUCCESSFUL
    
    Total time: 4.473 secs
    Android package built successfully in 4.817 ms.
      -- File: /home/lukasz/Qt_desktop/Examples/Qt-5.11.1/quick/demos/build-clocks-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_for_Android_armv7-Debug/android-build//build/outputs/apk/android-build-debug.apk
    10:58:16: The process "/home/lukasz/Qt_desktop/5.11.1/android_armv7/bin/androiddeployqt" exited normally.
    10:58:16: Starting: "/home/lukasz/Qt_desktop/5.11.1/android_armv7/bin/androiddeployqt" --verbose --output /home/lukasz/Qt_desktop/Examples/Qt-5.11.1/quick/demos/build-clocks-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_for_Android_armv7-Debug/android-build --no-build --input /home/lukasz/Qt_desktop/Examples/Qt-5.11.1/quick/demos/build-clocks-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_for_Android_armv7-Debug/android-libclocks.so-deployment-settings.json --gradle --reinstall --device 43002d6ab025b0db
    Generating Android Package
      Input file: /home/lukasz/Qt_desktop/Examples/Qt-5.11.1/quick/demos/build-clocks-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_for_Android_armv7-Debug/android-libclocks.so-deployment-settings.json
      Output directory: /home/lukasz/Qt_desktop/Examples/Qt-5.11.1/quick/demos/build-clocks-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_for_Android_armv7-Debug/android-build/
      Application binary: /home/lukasz/Qt_desktop/Examples/Qt-5.11.1/quick/demos/build-clocks-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_for_Android_armv7-Debug/libclocks.so
      Android build platform: android-28
      Install to device: 43002d6ab025b0db
    Detecting dependencies of application.
    Reading dependencies from /home/lukasz/Qt_desktop/Examples/Qt-5.11.1/quick/demos/build-clocks-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_for_Android_armv7-Debug/libclocks.so
          lib/libQt5Quick.so
          lib/libQt5Gui.so
          lib/libQt5Qml.so
          lib/libQt5Network.so
          lib/libQt5Core.so
    Reading dependencies from /home/lukasz/Qt_desktop/5.11.1/android_armv7/lib/libQt5Quick.so
          lib/libQt5Qml.so
          lib/libQt5Gui.so
          lib/libQt5Network.so
          lib/libQt5Core.so
    Reading dependencies from /home/lukasz/Qt_desktop/5.11.1/android_armv7/lib/libQt5Qml.so
          lib/libQt5Network.so
          lib/libQt5Core.so
    Reading dependencies from /home/lukasz/Qt_desktop/5.11.1/android_armv7/lib/libQt5Network.so
          lib/libQt5Core.so
    Reading dependencies from /home/lukasz/Qt_desktop/5.11.1/android_armv7/lib/libQt5Core.so
    Appending dependency: lib/libQt5Core.so
    Reading Android dependencies for Qt5Core
    Appending dependency: lib/libQt5Network.so
    Reading Android dependencies for Qt5Network
    Appending dependency from xml: plugins/bearer/libqandroidbearer.so
    Appending dependency: lib/libQt5Qml.so
    Reading dependencies from /home/lukasz/Qt_desktop/5.11.1/android_armv7/lib/libQt5Gui.so
          lib/libQt5Core.so
    Appending dependency: lib/libQt5Gui.so
    Reading Android dependencies for Qt5Qml
    Appending dependency from xml: plugins/qmltooling/libqmldbg_debugger.so
    Appending dependency from xml: plugins/qmltooling/libqmldbg_inspector.so
    Appending dependency from xml: plugins/qmltooling/libqmldbg_local.so
    Appending dependency from xml: plugins/qmltooling/libqmldbg_messages.so
    Appending dependency from xml: plugins/qmltooling/libqmldbg_native.so
    Appending dependency from xml: plugins/qmltooling/libqmldbg_nativedebugger.so
    Appending dependency from xml: plugins/qmltooling/libqmldbg_profiler.so
    Appending dependency from xml: plugins/qmltooling/libqmldbg_quickprofiler.so
    Appending dependency from xml: plugins/qmltooling/libqmldbg_server.so
    Appending dependency from xml: plugins/qmltooling/libqmldbg_tcp.so
    Reading Android dependencies for Qt5Gui
    Appending dependency from xml: plugins/platforms/android/libqtforandroid.so
    Appending dependency from xml: plugins/iconengines/libqsvgicon.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/libqjpeg.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 from xml: plugins/imageformats/libqwebp.so
    Appending dependency: lib/libQt5Quick.so
    Reading Android dependencies for Qt5Quick
    Appending dependency from xml: lib/libQt5QuickParticles.so
    Reading dependencies from /home/lukasz/Qt_desktop/5.11.1/android_armv7/plugins/platforms/android/libqtforandroid.so
          lib/libQt5Gui.so
          lib/libQt5Core.so
    Reading dependencies from /home/lukasz/Qt_desktop/5.11.1/android_armv7/plugins/bearer/libqandroidbearer.so
          lib/libQt5Network.so
          lib/libQt5Core.so
    Reading dependencies from /home/lukasz/Qt_desktop/5.11.1/android_armv7/plugins/platforms/android/libqtforandroid.so
          lib/libQt5Gui.so
          lib/libQt5Core.so
    Reading dependencies from /home/lukasz/Qt_desktop/5.11.1/android_armv7/lib/libQt5QuickParticles.so
          lib/libQt5Quick.so
          lib/libQt5Qml.so
          lib/libQt5Gui.so
          lib/libQt5Network.so
          lib/libQt5Core.so
    Scanning for QML imports.
      -- Adding '/home/lukasz/Qt_desktop/5.11.1/android_armv7/qml/QtQuick.2' as QML dependency
        -- Appending dependency found by qmlimportscanner: /home/lukasz/Qt_desktop/5.11.1/android_armv7/qml/QtQuick.2/libqtquick2plugin.so
    Reading dependencies from /home/lukasz/Qt_desktop/5.11.1/android_armv7/qml/QtQuick.2/libqtquick2plugin.so
          lib/libQt5Quick.so
          lib/libQt5Qml.so
          lib/libQt5Gui.so
          lib/libQt5Network.so
          lib/libQt5Core.so
        -- Appending dependency found by qmlimportscanner: /home/lukasz/Qt_desktop/5.11.1/android_armv7/qml/QtQuick.2/plugins.qmltypes
        -- Appending dependency found by qmlimportscanner: /home/lukasz/Qt_desktop/5.11.1/android_armv7/qml/QtQuick.2/qmldir
      -- Adding '/home/lukasz/Qt_desktop/Examples/Qt-5.11.1/quick/demos/clocks/clocks.qml/content' as QML dependency
        -- Skipping because file does not exist.
    Copying STL library
      -- Skipping file /home/lukasz/android/android-ndk-r17c/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libgnustl_shared.so. Same or newer file already in place.
    Copying 33 dependencies from Qt into package.
    Installing Android package to device.
    Running command "/home/lukasz/android/android-sdk/platform-tools/adb -s 43002d6ab025b0db  install -r /home/lukasz/Qt_desktop/Examples/Qt-5.11.1/quick/demos/build-clocks-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_for_Android_armv7-Debug/android-build//build/outputs/apk/android-build-debug.apk"
    [  0%] /data/local/tmp/android-build-debug.apk
    [  1%] /data/local/tmp/android-build-debug.apk
    [  2%] /data/local/tmp/android-build-debug.apk
    [  3%] /data/local/tmp/android-build-debug.apk
    [  4%] /data/local/tmp/android-build-debug.apk
    [  4%] /data/local/tmp/android-build-debug.apk
    [  5%] /data/local/tmp/android-build-debug.apk
    [  6%] /data/local/tmp/android-build-debug.apk
    [  7%] /data/local/tmp/android-build-debug.apk
    [  8%] /data/local/tmp/android-build-debug.apk
    [  8%] /data/local/tmp/android-build-debug.apk
    [  9%] /data/local/tmp/android-build-debug.apk
    [ 10%] /data/local/tmp/android-build-debug.apk
    [ 11%] /data/local/tmp/android-build-debug.apk
    [ 12%] /data/local/tmp/android-build-debug.apk
    [ 13%] /data/local/tmp/android-build-debug.apk
    [ 13%] /data/local/tmp/android-build-debug.apk
    [ 14%] /data/local/tmp/android-build-debug.apk
    [ 15%] /data/local/tmp/android-build-debug.apk
    [ 16%] /data/local/tmp/android-build-debug.apk
    [ 17%] /data/local/tmp/android-build-debug.apk
    [ 17%] /data/local/tmp/android-build-debug.apk
    [ 18%] /data/local/tmp/android-build-debug.apk
    [ 19%] /data/local/tmp/android-build-debug.apk
    [ 20%] /data/local/tmp/android-build-debug.apk
    [ 21%] /data/local/tmp/android-build-debug.apk
    [ 21%] /data/local/tmp/android-build-debug.apk
    [ 22%] /data/local/tmp/android-build-debug.apk
    [ 23%] /data/local/tmp/android-build-debug.apk
    [ 24%] /data/local/tmp/android-build-debug.apk
    [ 25%] /data/local/tmp/android-build-debug.apk
    [ 26%] /data/local/tmp/android-build-debug.apk
    [ 26%] /data/local/tmp/android-build-debug.apk
    [ 27%] /data/local/tmp/android-build-debug.apk
    [ 28%] /data/local/tmp/android-build-debug.apk
    [ 29%] /data/local/tmp/android-build-debug.apk
    [ 30%] /data/local/tmp/android-build-debug.apk
    [ 30%] /data/local/tmp/android-build-debug.apk
    [ 31%] /data/local/tmp/android-build-debug.apk
    [ 32%] /data/local/tmp/android-build-debug.apk
    [ 33%] /data/local/tmp/android-build-debug.apk
    [ 34%] /data/local/tmp/android-build-debug.apk
    [ 35%] /data/local/tmp/android-build-debug.apk
    [ 35%] /data/local/tmp/android-build-debug.apk
    [ 36%] /data/local/tmp/android-build-debug.apk
    [ 37%] /data/local/tmp/android-build-debug.apk
    [ 38%] /data/local/tmp/android-build-debug.apk
    [ 39%] /data/local/tmp/android-build-debug.apk
    [ 39%] /data/local/tmp/android-build-debug.apk
    [ 40%] /data/local/tmp/android-build-debug.apk
    [ 41%] /data/local/tmp/android-build-debug.apk
    [ 42%] /data/local/tmp/android-build-debug.apk
    [ 43%] /data/local/tmp/android-build-debug.apk
    [ 43%] /data/local/tmp/android-build-debug.apk
    [ 44%] /data/local/tmp/android-build-debug.apk
    [ 45%] /data/local/tmp/android-build-debug.apk
    [ 46%] /data/local/tmp/android-build-debug.apk
    [ 47%] /data/local/tmp/android-build-debug.apk
    [ 48%] /data/local/tmp/android-build-debug.apk
    [ 48%] /data/local/tmp/android-build-debug.apk
    [ 49%] /data/local/tmp/android-build-debug.apk
    [ 50%] /data/local/tmp/android-build-debug.apk
    [ 51%] /data/local/tmp/android-build-debug.apk
    [ 52%] /data/local/tmp/android-build-debug.apk
    [ 52%] /data/local/tmp/android-build-debug.apk
    [ 53%] /data/local/tmp/android-build-debug.apk
    [ 54%] /data/local/tmp/android-build-debug.apk
    [ 55%] /data/local/tmp/android-build-debug.apk
    [ 56%] /data/local/tmp/android-build-debug.apk
    [ 57%] /data/local/tmp/android-build-debug.apk
    [ 57%] /data/local/tmp/android-build-debug.apk
    [ 58%] /data/local/tmp/android-build-debug.apk
    [ 59%] /data/local/tmp/android-build-debug.apk
    [ 60%] /data/local/tmp/android-build-debug.apk
    [ 61%] /data/local/tmp/android-build-debug.apk
    [ 61%] /data/local/tmp/android-build-debug.apk
    [ 62%] /data/local/tmp/android-build-debug.apk
    [ 63%] /data/local/tmp/android-build-debug.apk
    [ 64%] /data/local/tmp/android-build-debug.apk
    [ 65%] /data/local/tmp/android-build-debug.apk
    [ 65%] /data/local/tmp/android-build-debug.apk
    [ 66%] /data/local/tmp/android-build-debug.apk
    [ 67%] /data/local/tmp/android-build-debug.apk
    [ 68%] /data/local/tmp/android-build-debug.apk
    [ 69%] /data/local/tmp/android-build-debug.apk
    [ 70%] /data/local/tmp/android-build-debug.apk
    [ 70%] /data/local/tmp/android-build-debug.apk
    [ 71%] /data/local/tmp/android-build-debug.apk
    [ 72%] /data/local/tmp/android-build-debug.apk
    [ 73%] /data/local/tmp/android-build-debug.apk
    [ 74%] /data/local/tmp/android-build-debug.apk
    [ 74%] /data/local/tmp/android-build-debug.apk
    [ 75%] /data/local/tmp/android-build-debug.apk
    [ 76%] /data/local/tmp/android-build-debug.apk
    [ 77%] /data/local/tmp/android-build-debug.apk
    [ 78%] /data/local/tmp/android-build-debug.apk
    [ 78%] /data/local/tmp/android-build-debug.apk
    [ 79%] /data/local/tmp/android-build-debug.apk
    [ 80%] /data/local/tmp/android-build-debug.apk
    [ 81%] /data/local/tmp/android-build-debug.apk
    [ 82%] /data/local/tmp/android-build-debug.apk
    [ 83%] /data/local/tmp/android-build-debug.apk
    [ 83%] /data/local/tmp/android-build-debug.apk
    [ 84%] /data/local/tmp/android-build-debug.apk
    [ 85%] /data/local/tmp/android-build-debug.apk
    [ 86%] /data/local/tmp/android-build-debug.apk
    [ 87%] /data/local/tmp/android-build-debug.apk
    [ 87%] /data/local/tmp/android-build-debug.apk
    [ 88%] /data/local/tmp/android-build-debug.apk
    [ 89%] /data/local/tmp/android-build-debug.apk
    [ 90%] /data/local/tmp/android-build-debug.apk
    [ 91%] /data/local/tmp/android-build-debug.apk
    [ 92%] /data/local/tmp/android-build-debug.apk
    [ 92%] /data/local/tmp/android-build-debug.apk
    [ 93%] /data/local/tmp/android-build-debug.apk
    [ 94%] /data/local/tmp/android-build-debug.apk
    [ 95%] /data/local/tmp/android-build-debug.apk
    [ 96%] /data/local/tmp/android-build-debug.apk
    [ 96%] /data/local/tmp/android-build-debug.apk
    [ 97%] /data/local/tmp/android-build-debug.apk
    [ 98%] /data/local/tmp/android-build-debug.apk
    [ 99%] /data/local/tmp/android-build-debug.apk
    [100%] /data/local/tmp/android-build-debug.apk
    /home/lukasz/Qt_desktop/Examples/Qt-5.11.1/quick/demos/build-clocks-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_for_Android_armv7-Debug/android-build//build/outputs/apk/android-build-debug.apk: 1 file pushed. 0.4 MB/s (8046870 bytes in 18.399s)
    	pkg: /data/local/tmp/android-build-debug.apk
    Success
    Android package built successfully in 23.284 ms.
      -- It can now be run from the selected device/emulator.
      -- File: /home/lukasz/Qt_desktop/Examples/Qt-5.11.1/quick/demos/build-clocks-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_for_Android_armv7-Debug/android-build//build/outputs/apk/android-build-debug.apk
    10:58:39: The process "/home/lukasz/Qt_desktop/5.11.1/android_armv7/bin/androiddeployqt" exited normally.
    10:58:39: Pulling files necessary for debugging.
    10:58:39: Package deploy: Running command "/home/lukasz/android/android-sdk/platform-tools/adb -s 43002d6ab025b0db pull /system/bin/app_process /home/lukasz/Qt_desktop/Examples/Qt-5.11.1/quick/demos/build-clocks-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_for_Android_armv7-Debug/app_process".
    10:58:39: The command "/home/lukasz/android/android-sdk/platform-tools/adb" terminated with exit code 1.
    10:58:39: Package deploy: Failed to pull "/system/bin/app_process" to "/home/lukasz/Qt_desktop/Examples/Qt-5.11.1/quick/demos/build-clocks-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_for_Android_armv7-Debug/app_process".
    10:58:39: Package deploy: Running command "/home/lukasz/android/android-sdk/platform-tools/adb -s 43002d6ab025b0db pull /system/bin/app_process32 /home/lukasz/Qt_desktop/Examples/Qt-5.11.1/quick/demos/build-clocks-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_for_Android_armv7-Debug/app_process".
    10:58:39: Package deploy: Running command "/home/lukasz/android/android-sdk/platform-tools/adb -s 43002d6ab025b0db pull /system/bin/linker /home/lukasz/Qt_desktop/Examples/Qt-5.11.1/quick/demos/build-clocks-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_for_Android_armv7-Debug/linker".
    10:58:39: Package deploy: Running command "/home/lukasz/android/android-sdk/platform-tools/adb -s 43002d6ab025b0db pull /system/lib/libc.so /home/lukasz/Qt_desktop/Examples/Qt-5.11.1/quick/demos/build-clocks-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_for_Android_armv7-Debug/libc.so".
    10:58:40: Elapsed time: 00:30.
    

  • Moderators

    Huh, no idea, then.



  • @sierdzio Ok, thank you for the help so far.



  • @sierdzio I have replaced my target device (Samsung Galaxy tab 10.1 2014) with Samsung S6 and the deploy works... I have no idea what was the case, I have enabled everything the adb wanted me too.


  • Moderators

    @Bremenpl said in Deploying an Android Application problem:

    @sierdzio I have replaced my target device (Samsung Galaxy tab 10.1 2014) with Samsung S6 and the deploy works... I have no idea what was the case, I have enabled everything the adb wanted me too.

    Wow, that's unexpected! Good that you have found a solution, though.


Log in to reply