赞
踩
在程序运行过程中总有类似的错误,故先使用命令 adb -s emulator-5554 install app
直接在模拟器中安装应用程序。
Performing Streamed Install
adb: failed to install ndss16/plghost/APP/China_Daily.apk: Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]
原因分析:
由于安装的APP中使用了与当前CPU架构不一致的native libraries,所以导致报错,因为现在绝大多数的智能手机还都是采用ARM架构的,虽然android是支持ARM和x86架构,但是它们的指令集是有差别的,APP在开发的时候使用的是ARM的本地库,而我们在用AVD创建模拟器的时候使用的是x86的CPU,因此导致报错。所以,如果APP是在x86架构下编译的我们就创建x86cpu的模拟器,如果APP是在ARM架构编译的我们就创建ARMcpu的模拟器。
只有Jio TV和BBC news可以安装成功
设备 | CPU | 是否可以启动 | 错误 |
---|---|---|---|
Android 7.1.1(API 25)——y25_arm 5570 | google_apis/armeabi-v7a | 否 | Invalid CPU architecture |
Android 7.1.1(API 25)——y25_arm 5572 | android-wear/armeabi-v7a | 否 | Invalid CPU architecture |
Android 7.1.1(API 25)——y25_google 5574 | google_apis_playstore/x86 | 是 | device unauthorized |
错误信息:Invalid CPU architecture
Creating filesystem with parameters:
Size: 69206016
Block size: 4096
Blocks per group: 32768
Inodes per group: 4224
Inode size: 256
Journal blocks: 1024
Label:
Blocks: 16896
Block groups: 1
Reserved block group size: 7
Created filesystem with 11/4224 inodes and 1302/16896 blocks
-- Invalid CPU architecture: arm, valid values: x86 x86_64
错误信息:device unauthorized
Performing Push Install
adb: error: failed to get feature set: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。