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

Qt for Android : ABI is incompatible,device supports ABIs: armeabi-v7a armeabi



  • Hi all, I have downloaded Qt Creator for linux-ubuntu.
    I try to run my app to my android phone(Samsung J5), but I get this error from Qt when I try to connect my phone to my laptop and run my app: ABI is incompatible,device supports ABIs: armeabi-v7a armeabi.

    15:10:16: Running steps for project Jar...
    15:10:16: Configuration unchanged, skipping qmake step.
    15:10:16: Starting: "/usr/bin/make" 
    make: Nothing to be done for 'first'.
    15:10:16: The process "/usr/bin/make" exited normally.
    15:10:16: Removing directory /home/tasosxak/build-Jar-Android_for_x86_GCC_4_9_Qt_5_10_1_for_Android_x86-Debug/android-build/assets
    15:10:16: Removing directory /home/tasosxak/build-Jar-Android_for_x86_GCC_4_9_Qt_5_10_1_for_Android_x86-Debug/android-build/libs
    15:10:16: Starting: "/usr/bin/make" INSTALL_ROOT=/home/tasosxak/build-Jar-Android_for_x86_GCC_4_9_Qt_5_10_1_for_Android_x86-Debug/android-build install
    /home/tasosxak/Qt5.10.1/5.10.1/android_x86/bin/qmake -install qinstall -exe libJar.so /home/tasosxak/build-Jar-Android_for_x86_GCC_4_9_Qt_5_10_1_for_Android_x86-Debug/android-build/libs/x86/libJar.so
    15:10:16: The process "/usr/bin/make" exited normally.
    15:10:16: Starting: "/home/tasosxak/Qt5.10.1/5.10.1/android_x86/bin/androiddeployqt" --input /home/tasosxak/build-Jar-Android_for_x86_GCC_4_9_Qt_5_10_1_for_Android_x86-Debug/android-libJar.so-deployment-settings.json --output /home/tasosxak/build-Jar-Android_for_x86_GCC_4_9_Qt_5_10_1_for_Android_x86-Debug/android-build --deployment bundled --android-platform android-27 --jdk /usr/lib/jvm/java-8-openjdk-amd64 --gradle
    Generating Android Package
      Input file: /home/tasosxak/build-Jar-Android_for_x86_GCC_4_9_Qt_5_10_1_for_Android_x86-Debug/android-libJar.so-deployment-settings.json
      Output directory: /home/tasosxak/build-Jar-Android_for_x86_GCC_4_9_Qt_5_10_1_for_Android_x86-Debug/android-build/
      Application binary: /home/tasosxak/build-Jar-Android_for_x86_GCC_4_9_Qt_5_10_1_for_Android_x86-Debug/libJar.so
      Android build platform: android-27
      Install to device: No
    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
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Fusion.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Imagine.impl
    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: 9.648 secs
    Android package built successfully in 11.198 ms.
      -- File: /home/tasosxak/build-Jar-Android_for_x86_GCC_4_9_Qt_5_10_1_for_Android_x86-Debug/android-build//build/outputs/apk/android-build-debug.apk
    15:10:27: The process "/home/tasosxak/Qt5.10.1/5.10.1/android_x86/bin/androiddeployqt" exited normally.
    15:10:27: Could not start process "" 
    Error while building/deploying project Jar (kit: Android for x86 (GCC 4.9, Qt 5.10.1 for Android x86))
    When executing step "Custom Process Step"
    15:10:27: Elapsed time: 00:11.
    
    
    

    My Build Options:

    Android Build SDK : Android 27 ( I tried to downgrade the version)
    Qt Versions: Qt 5.10.1 for Android x86 , Qt 5.10.1 GCC 64 bit
    JDK : java8-openjdk-amd64
    NDK Version: 16.1.4479499
    SDK Version: 25.2.5


  • Moderators

    Hi,
    @tasosxak said in Qt for Android : ABI is incompatible,device supports ABIs: armeabi-v7a armeabi:

    Samsung J5

    The J5 has a ARM Cortex-A54 CPU, thats arm-architecture, you're compiling for x86 that won't work.

    Open the maintenance tool of your QtCreator and install the armeabi-v7 Qt-Libary.



  • Hi J.Hilk , thank you for your answer.
    How can I download Android for armeabi-v7 Qt-Library?


  • Lifetime Qt Champion

    Hi,

    as @J-Hilk suggested: start the MaintenanceTool application and install that version of Qt.



  • Thank you very much!



  • @tasosxak whenever your issue is solved, please don't forget to mark your post as such. Thanks.


Log in to reply