Reputation: 7910
I am working through the steps starting at this point in the Gluon-Mobile documentation. https://docs.gluonhq.com/#platforms_android_sample
The following steps succeeded, and in each case, the expected files were created. I was very pleased to see the .apk file in the expected location after the package command was run.
When I ran the command to install and run on my device
I received the following exception message:
INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries
I see that my device was correctly identified (LM X210VPP). There is a warning prior, is this related to the failure?
No version of NDK matched the required version 21.1.6352462.
Following is a larger excerpt from the log file. If more is needed, please let me know!
[Tue Sep 21 17:42:18 PDT 2021][FINE] Start process install-task...
[Tue Sep 21 17:42:19 PDT 2021][FINE] [SUB] To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/6.4.1/userguide/gradle_daemon.html.
[Tue Sep 21 17:42:20 PDT 2021][FINE] [SUB] Daemon will be stopped at the end of the build stopping after processing
[Tue Sep 21 17:42:27 PDT 2021][FINE] [SUB] > Task :app:preBuild UP-TO-DATE
[Tue Sep 21 17:42:27 PDT 2021][FINE] [SUB] > Task :app:preDebugBuild UP-TO-DATE
[Tue Sep 21 17:42:27 PDT 2021][FINE] [SUB] > Task :app:compileDebugAidl NO-SOURCE
[Tue Sep 21 17:42:27 PDT 2021][FINE] [SUB] > Task :app:generateDebugBuildConfig UP-TO-DATE
[Tue Sep 21 17:42:27 PDT 2021][FINE] [SUB] > Task :app:compileDebugRenderscript NO-SOURCE
[Tue Sep 21 17:42:27 PDT 2021][FINE] [SUB] > Task :app:javaPreCompileDebug UP-TO-DATE
[Tue Sep 21 17:42:27 PDT 2021][FINE] [SUB] > Task :app:generateDebugResValues UP-TO-DATE
[Tue Sep 21 17:42:27 PDT 2021][FINE] [SUB] > Task :app:generateDebugResources UP-TO-DATE
[Tue Sep 21 17:42:27 PDT 2021][FINE] [SUB] > Task :app:mergeDebugResources UP-TO-DATE
[Tue Sep 21 17:42:27 PDT 2021][FINE] [SUB] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[Tue Sep 21 17:42:27 PDT 2021][FINE] [SUB] > Task :app:extractDeepLinksDebug UP-TO-DATE
[Tue Sep 21 17:42:27 PDT 2021][FINE] [SUB] > Task :app:processDebugMainManifest UP-TO-DATE
[Tue Sep 21 17:42:27 PDT 2021][FINE] [SUB] > Task :app:processDebugManifest UP-TO-DATE
[Tue Sep 21 17:42:27 PDT 2021][FINE] [SUB] > Task :app:processDebugManifestForPackage UP-TO-DATE
[Tue Sep 21 17:42:27 PDT 2021][FINE] [SUB] > Task :app:processDebugResources UP-TO-DATE
[Tue Sep 21 17:42:27 PDT 2021][FINE] [SUB] > Task :app:compileDebugJavaWithJavac UP-TO-DATE
[Tue Sep 21 17:42:27 PDT 2021][FINE] [SUB] > Task :app:mergeDebugShaders UP-TO-DATE
[Tue Sep 21 17:42:27 PDT 2021][FINE] [SUB] > Task :app:compileDebugShaders NO-SOURCE
[Tue Sep 21 17:42:27 PDT 2021][FINE] [SUB] > Task :app:generateDebugAssets UP-TO-DATE
[Tue Sep 21 17:42:27 PDT 2021][FINE] [SUB] > Task :app:mergeDebugAssets UP-TO-DATE
[Tue Sep 21 17:42:27 PDT 2021][FINE] [SUB] > Task :app:processDebugJavaRes NO-SOURCE
[Tue Sep 21 17:42:27 PDT 2021][FINE] [SUB] > Task :app:mergeDebugJavaResource UP-TO-DATE
[Tue Sep 21 17:42:28 PDT 2021][FINE] [SUB] > Task :app:checkDebugDuplicateClasses UP-TO-DATE
[Tue Sep 21 17:42:28 PDT 2021][FINE] [SUB] > Task :app:mergeLibDexDebug UP-TO-DATE
[Tue Sep 21 17:42:28 PDT 2021][FINE] [SUB] > Task :app:desugarDebugFileDependencies UP-TO-DATE
[Tue Sep 21 17:42:28 PDT 2021][FINE] [SUB] > Task :app:mergeExtDexDebug UP-TO-DATE
[Tue Sep 21 17:42:28 PDT 2021][FINE] [SUB] > Task :app:dexBuilderDebug UP-TO-DATE
[Tue Sep 21 17:42:28 PDT 2021][FINE] [SUB] > Task :app:mergeProjectDexDebug UP-TO-DATE
[Tue Sep 21 17:42:28 PDT 2021][FINE] [SUB] > Task :app:mergeDebugJniLibFolders UP-TO-DATE
[Tue Sep 21 17:42:28 PDT 2021][FINE] [SUB] > Task :app:mergeDebugNativeLibs UP-TO-DATE
[Tue Sep 21 17:42:28 PDT 2021][FINE] [SUB]
[Tue Sep 21 17:42:28 PDT 2021][FINE] [SUB] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[Tue Sep 21 17:42:28 PDT 2021][FINE] [SUB] WARNING: No version of NDK matched the required version 21.1.6352462. Versions available locally:
[Tue Sep 21 17:42:28 PDT 2021][FINE] [SUB] No version of NDK matched the required version 21.1.6352462. Versions available locally:
[Tue Sep 21 17:42:28 PDT 2021][FINE] [SUB]
[Tue Sep 21 17:42:28 PDT 2021][FINE] [SUB] > Task :app:validateSigningDebug UP-TO-DATE
[Tue Sep 21 17:42:28 PDT 2021][FINE] [SUB] > Task :app:packageDebug UP-TO-DATE
[Tue Sep 21 17:42:30 PDT 2021][FINE] [SUB]
[Tue Sep 21 17:42:30 PDT 2021][FINE] [SUB] > Task :app:installDebug
[Tue Sep 21 17:42:30 PDT 2021][FINE] [SUB] [adb]: * daemon not running; starting now at tcp:5037
[Tue Sep 21 17:42:30 PDT 2021][FINE] [SUB] [adb]: * daemon started successfully
[Tue Sep 21 17:42:31 PDT 2021][FINE] [SUB] Installing APK 'app-debug.apk' on 'LM-X210VPP - 7.1.2' for app:debug
[Tue Sep 21 17:42:35 PDT 2021][FINE] [SUB] Unable to install /home/phil/Projects/metronome/gluon-samples-master/HelloFX/target/gluonfx/aarch64-android/gvm/android_project/app/build/outputs/apk/debug/app-debug.apk
[Tue Sep 21 17:42:35 PDT 2021][FINE] [SUB] com.android.ddmlib.InstallException: INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113
[Tue Sep 21 17:42:35 PDT 2021][FINE] [SUB]
Does this mean that my particular device is not covered? I found this page from Android about ABIs, and am trying to figure out how my device relates. UPDATE: phone has armeabi-v7z instruction set. This seems to me like it should be supported, as it is listed in the page I linked just above of Android ABIs. I'm back to wondering if there is something awry with the NDK that I should be paying more attention to.
EDIT (10/3/21), FOLLOWING UP ON INSTRUCTIONS GIVEN IN COMMENTS
I am experiencing the same error with a phone that has a 64-bit CPU and instruction set:
From GSM Arena, Motorola Moto G Fast
OS: Android 10
Chipset: Qualcomm SM6125 Snapdragon 665 (11 nm)
CPU: Octa-core (4x2.0 GHz Kryo 260 Gold & 4x1.8 GHz Kryo 260 Silver)
From Qualcomm Snapdragon 665
CPU CPU Clock Speed: Up to 2.0 GHz
CPU Cores: Qualcomm® Kryo™ 260 CPU, Octa-core CPU
CPU Architecture: 64-bit
Checking the hardware info on the phone using the Droid Hardware Info tool:
CPU Architecture: AArch64 processor rev 2(aarch64)
Board: rav
Instruction Sets: arm64-v8a
From the log
[Fri Oct 01 17:15:27 PDT 2021][INFO] ==================== INSTALL TASK ====================
[Fri Oct 01 17:15:27 PDT 2021][FINE] PB Command for install-task: /home/phil/Projects/metronome/gluon-samples-master/HelloFX/target/gluonfx/aarch64-android/gvm/android_project/gradlew -p /home/phil/Projects/metronome/gluon-samples-master/HelloFX/target/gluonfx/aarch64-android/gvm/android_project installDebug
[Fri Oct 01 17:15:27 PDT 2021][FINE] Start process install-task...
[Fri Oct 01 17:15:29 PDT 2021][FINE] [SUB] To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/6.4.1/userguide/gradle_daemon.html.
[Fri Oct 01 17:15:30 PDT 2021][FINE] [SUB] Daemon will be stopped at the end of the build stopping after processing
[Fri Oct 01 17:15:38 PDT 2021][FINE] [SUB] > Task :app:preBuild UP-TO-DATE
[Fri Oct 01 17:15:38 PDT 2021][FINE] [SUB] > Task :app:preDebugBuild UP-TO-DATE
[Fri Oct 01 17:15:38 PDT 2021][FINE] [SUB] > Task :app:compileDebugAidl NO-SOURCE
[Fri Oct 01 17:15:38 PDT 2021][FINE] [SUB] > Task :app:generateDebugBuildConfig UP-TO-DATE
[Fri Oct 01 17:15:38 PDT 2021][FINE] [SUB] > Task :app:compileDebugRenderscript NO-SOURCE
[Fri Oct 01 17:15:38 PDT 2021][FINE] [SUB] > Task :app:javaPreCompileDebug UP-TO-DATE
[Fri Oct 01 17:15:38 PDT 2021][FINE] [SUB] > Task :app:generateDebugResValues UP-TO-DATE
[Fri Oct 01 17:15:38 PDT 2021][FINE] [SUB] > Task :app:generateDebugResources UP-TO-DATE
[Fri Oct 01 17:15:38 PDT 2021][FINE] [SUB] > Task :app:mergeDebugResources UP-TO-DATE
[Fri Oct 01 17:15:38 PDT 2021][FINE] [SUB] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[Fri Oct 01 17:15:38 PDT 2021][FINE] [SUB] > Task :app:extractDeepLinksDebug UP-TO-DATE
[Fri Oct 01 17:15:38 PDT 2021][FINE] [SUB] > Task :app:processDebugMainManifest UP-TO-DATE
[Fri Oct 01 17:15:38 PDT 2021][FINE] [SUB] > Task :app:processDebugManifest UP-TO-DATE
[Fri Oct 01 17:15:38 PDT 2021][FINE] [SUB] > Task :app:processDebugManifestForPackage UP-TO-DATE
[Fri Oct 01 17:15:38 PDT 2021][FINE] [SUB] > Task :app:processDebugResources UP-TO-DATE
[Fri Oct 01 17:15:38 PDT 2021][FINE] [SUB] > Task :app:compileDebugJavaWithJavac UP-TO-DATE
[Fri Oct 01 17:15:38 PDT 2021][FINE] [SUB] > Task :app:mergeDebugShaders UP-TO-DATE
[Fri Oct 01 17:15:38 PDT 2021][FINE] [SUB] > Task :app:compileDebugShaders NO-SOURCE
[Fri Oct 01 17:15:38 PDT 2021][FINE] [SUB] > Task :app:generateDebugAssets UP-TO-DATE
[Fri Oct 01 17:15:38 PDT 2021][FINE] [SUB] > Task :app:mergeDebugAssets UP-TO-DATE
[Fri Oct 01 17:15:38 PDT 2021][FINE] [SUB] > Task :app:processDebugJavaRes NO-SOURCE
[Fri Oct 01 17:15:38 PDT 2021][FINE] [SUB] > Task :app:mergeDebugJavaResource UP-TO-DATE
[Fri Oct 01 17:15:39 PDT 2021][FINE] [SUB] > Task :app:checkDebugDuplicateClasses UP-TO-DATE
[Fri Oct 01 17:15:39 PDT 2021][FINE] [SUB] > Task :app:mergeLibDexDebug UP-TO-DATE
[Fri Oct 01 17:15:39 PDT 2021][FINE] [SUB] > Task :app:desugarDebugFileDependencies UP-TO-DATE
[Fri Oct 01 17:15:39 PDT 2021][FINE] [SUB] > Task :app:mergeExtDexDebug UP-TO-DATE
[Fri Oct 01 17:15:39 PDT 2021][FINE] [SUB] > Task :app:dexBuilderDebug UP-TO-DATE
[Fri Oct 01 17:15:39 PDT 2021][FINE] [SUB] > Task :app:mergeProjectDexDebug UP-TO-DATE
[Fri Oct 01 17:15:39 PDT 2021][FINE] [SUB] > Task :app:mergeDebugJniLibFolders UP-TO-DATE
[Fri Oct 01 17:15:39 PDT 2021][FINE] [SUB] > Task :app:mergeDebugNativeLibs UP-TO-DATE
[Fri Oct 01 17:15:39 PDT 2021][FINE] [SUB]
[Fri Oct 01 17:15:39 PDT 2021][FINE] [SUB] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[Fri Oct 01 17:15:39 PDT 2021][FINE] [SUB] WARNING: No version of NDK matched the required version 21.1.6352462. Versions available locally:
[Fri Oct 01 17:15:39 PDT 2021][FINE] [SUB] No version of NDK matched the required version 21.1.6352462. Versions available locally:
[Fri Oct 01 17:15:39 PDT 2021][FINE] [SUB]
[Fri Oct 01 17:15:39 PDT 2021][FINE] [SUB] > Task :app:validateSigningDebug UP-TO-DATE
[Fri Oct 01 17:15:39 PDT 2021][FINE] [SUB] > Task :app:packageDebug UP-TO-DATE
[Fri Oct 01 17:15:41 PDT 2021][FINE] [SUB]
[Fri Oct 01 17:15:41 PDT 2021][FINE] [SUB] > Task :app:installDebug
[Fri Oct 01 17:15:41 PDT 2021][FINE] [SUB] [adb]: * daemon not running; starting now at tcp:5037
[Fri Oct 01 17:15:41 PDT 2021][FINE] [SUB] [adb]: * daemon started successfully
[Fri Oct 01 17:15:41 PDT 2021][FINE] [SUB] Installing APK 'app-debug.apk' on 'LGL455DL - 9' for app:debug
[Fri Oct 01 17:15:44 PDT 2021][FINE] [SUB] Unable to install /home/phil/Projects/metronome/gluon-samples-master/HelloFX/target/gluonfx/aarch64-android/gvm/android_project/app/build/outputs/apk/debug/app-debug.apk
[Fri Oct 01 17:15:44 PDT 2021][FINE] [SUB] com.android.ddmlib.InstallException: INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113
Thank you for any assistance.
Upvotes: 0
Views: 122