How do I Install .apk files in the android emulator? [duplicate]
I want to install my .apk file in android emulator.But I have multiple emulators opened(开发者_C百科5554,5556) and i don't want to close any one of the emulator how to install a .apk file in an emulator when there is multiple emulators are opened?
You can tell adb
which device you want to connect to.
adb -s emulator-5554 install something.apk
(from the host). I am not sure the numbers you gave are the "serial numbers", so check with
adb devices
Use -s command line option with the name of emulator device, e.g.
#adb -s emulator-5554 install ...
Please check with this URLs
How to Install APK Files on Android Device Emulator
Tips: How to install apk files on Android Emulator
How to install .apk file to emulator?
If you want to install an external apk in your emulator, you need to use adb line code
Just create a simple app to open the apk file on your emulator. Here is the code https://stackoverflow.com/a/35339372/4924755
精彩评论