macos 在 android 模拟器(Mac 控制台)中播放 .apk 文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9170341/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Playing .apk files in android emulator (Mac console)
提问by AJ Naidas
I've been searching a lot on how to play a .apk file in an android emulator. Solutions brought me to doing it with a windows console but unfortunately i'm using a mac. Can anyone tell me how to do this? Thanks!
我一直在搜索如何在 android 模拟器中播放 .apk 文件。解决方案让我使用 Windows 控制台来完成它,但不幸的是我使用的是 mac。谁能告诉我如何做到这一点?谢谢!
回答by shanabus
Did you already try this? That's how I have it setup. It works well if you are just trying to deploy from clicking on it and don't require the command prompt on the Mac.
你已经尝试过了吗?我就是这样设置的。如果您只是尝试通过单击进行部署并且不需要 Mac 上的命令提示符,那么它运行良好。
UPDATE
更新
To actually launch the Android emulator, run this command:
要实际启动 Android 模拟器,请运行以下命令:
./emulator -avd DEVICE_NAME
If you are asking how to actually launch (aside from run emulator and isntall apk), check out this very similar post here: How do I launch the Android emulator from the command line?
如果您要问如何实际启动(除了运行模拟器和 isntall apk),请在此处查看这篇非常相似的帖子:如何从命令行启动 Android 模拟器?