app on 64-bit hardware

1,192 views
Skip to first unread message

PaBX

unread,
Feb 24, 2019, 3:29:34 PM2/24/19
to android-ndk
Hi,

I'm trying to test my app with new guidelines about 64-bits librairies, using this link:

:: Command Line
# A successful install:
> adb install --abi armeabi-v7a YOUR_APK_FILE.apk
Success

# If your APK does not have the 64-bit libraries:
> adb install --abi arm64-v8a YOUR_APK_FILE.apk
adb: failed to install YOUR_APK_FILE.apk: Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]

# If your device does not support 64-bit, an emulator, for example:
> adb install --abi arm64-v8a YOUR_APK_FILE.apk
ABI arm64-v8a not supported on this device


when trying to use adb to "force" one library, I have this problem :

adb install --abi armeabi-v7a zzz.apk
zzz.apk: 1 file pushed. 2.3 MB/s (7359404 bytes in 3.087s)
Error: Unknown option: --abi

what is installed on my macBook:
Android Debug Bridge version 1.0.40
Version 4986621

any ideas with this problem ?

kind regards,
PaBX




 

Gerry Fan

unread,
Mar 19, 2019, 8:49:22 PM3/19/19
to android-ndk
probably your adb version is newer ( compatible for Android Qt ). If you use the adb tool matching Android 9 Pie/before, that should work:
  adb install --abi arm64-v8a  build/outputs/apk/arm8/debug/app-arm8-debug.apk

(adb 1.0.40 and before works from my experience)
this does not solve the problem here: need to find out alternative command line parameters for new adb.

Gerry Fan

unread,
Mar 19, 2019, 9:10:14 PM3/19/19
to android-ndk
the one inside sdk 28.0.2 still works for me:
~/dev/sdk/platform-tools/adb --version 
Android Debug Bridge version 1.0.40
Version 28.0.2-5303910

may you try that public available? ( my build from aosp pie-gsi branch still works too ).

Alex Cohn

unread,
Mar 24, 2019, 5:48:25 AM3/24/19
to android-ndk


On Wednesday, March 20, 2019 at 2:49:22 AM UTC+2, Gerry Fan wrote:
probably your adb version is newer ( compatible for Android Qt ).

You mean, older. My adb reports 

Android Debug Bridge version 1.0.40
Version 28.0.2-5303910
Reply all
Reply to author
Forward
0 new messages