开发者

How do I Install .apk files in the android emulator? [duplicate]

This question already has answers here: How do you install an APK file in the Android emulator? (35 answers) Closed 2 years ago.

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜