I am playing around with Android Studio by testing some projects out from GitHub and when I try to emulate the apk, it does not let me choose an emulator.
It tells m
On Linux: File > Invalidate Cache / Restart On phone: Instead Charge this device change to Transfer photos (PTP)
Can confirm, toggling USB debugging off/on in Developer Options resolved the issue. Maybe even cancel the "Select Deployment Target" window in Android Studio and try to run the app again after toggling USB debugging.
If you use Ubuntu:
I had the same problem, I checkout the build.gradle from module:app. It turns out that there's a such config:
ndk {
abiFilters "armeabi-v7a", "x86"
}
when I commented all out, everything worked fine.
I was trying to deal with the React Native Android project.
In my case my app use some native libraries. Each platform requires the corresponding libs to be built.
So the native lib of x86(or any other) platform is not generated.You must have add an abifilter somewhere:
There are several places where abi filters can be specified:
Application.mk add the platform you need like this:
APP_ABI := armeabi armeabi-v7a x86
build.gradle
find abiFilters, and add platform you need like this:
abiFilters "armeabi","armeabi-v7a","x86"
For me it worked my changing the cable option from
-> Charge Only.
To
-> Transfer file.