问题
I'm trying to deploy and debug an app for different CPU ABis via my Android Emulator but get this error.
It doesn't specify what ABI the Emulator supports. I've tried running an APK that supports all ABIs but still get the same error.
This only happens to Emulators with a Google Play System Image. I have no issues deploying to the clean x86 System Image which isn't Google Play or Google APIs.
I'm running on Windows 10 64-bit, and on HAXM 6.1.2.
Any ideas?
回答1:
Check this stackoverflow question.
In build.gradle
, check this block
ndk {
// abiFilters "armeabi-v7a", "x86"
}
you either add what your device support or comment abiFilter
out.
回答2:
I had the same issue with a Motorola G6 Plus plugged in via USB. The device had USB debugging already enabled. Toggling USB debugging to off, and then back on again did the trick.
回答3:
Turns out it was an issue with the Emulator Image, I downloaded and update and that fixed the issue.
回答4:
if you use Ubuntu:
1. make sure that usb debugging is ON
2. check your cabel connection
3. on notification bar check android system notification and touch it for change charging state to file transfer
4. now go terminal and type:
adb devices
after run this command adb restart and your device show in list
来源:https://stackoverflow.com/questions/45387072/device-supports-undefined-but-apk-only-supports-x86