如何在模拟器上安装 Android Market App?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1387830/
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
How to install Android Market App on the emulator?
提问by Abhijit
I am not able to access android market through emulator.
我无法通过模拟器访问 android 市场。
回答by Liane Yvkoff
I got Android Market to work on Emulator for Platform 2.3 using OS 10.6.6:
我让 Android Market 使用 OS 10.6.6 在 Emulator for Platform 2.3 上工作:
First download and setup emulator on your mac.
Launch emulator and create an AVD. I created one called vd1
.
Close vd1
.
首先在 Mac 上下载并设置模拟器。启动模拟器并创建一个 AVD。我创建了一个名为vd1
. 关闭vd1
。
Launch Terminal in Utilities and enable the Finder to show hidden system files and folders by executing following commands:
在实用程序中启动终端并通过执行以下命令使 Finder 显示隐藏的系统文件和文件夹:
lsy$ defaults write com.apple.finder AppleShowAllFiles TRUE
lsy$ killall Finder
Download system.img
http://www.mediafire.com/?s8eeph3r71ho1lz
下载system.img
http://www.mediafire.com/?s8eeph3r71ho1lz
Copy system.img to two locations:
将 system.img 复制到两个位置:
[username]\.android\avd\[vd1]\
[username]\android\platforms\android-9\images\
Launch emulator from Terminal
从终端启动模拟器
lsy$ cd android\tools
lsy$ ./emulator -avd [vd1] -partition-size 100
回答by Will
Android Market is not available through the emulator for similar reasons it is not available through the developer phone. Allowing people to buy applications with an unlocked phone (or the emulator) would make it easier for those paid apps to be redistributed as freee apps.
出于类似的原因,Android Market 无法通过模拟器使用,也无法通过开发者手机使用。允许人们使用未锁定的手机(或模拟器)购买应用程序将使那些付费应用程序更容易作为免费应用程序重新分发。
回答by Jay Wick
Will's right. But also see this if it helps: http://forum.openhandsetdevelopers.com/running-android-market-on-emulator-no-download-issue-t82.html
威尔是对的。但如果有帮助,也可以看看:http: //forum.openhandsetdevelopers.com/running-android-market-on-emulator-no-download-issue-t82.html
回答by Kumar
Check out this link.
看看这个链接。
http://tech-droid.blogspot.com/2009/11/android-market-on-emulator.html
http://tech-droid.blogspot.com/2009/11/android-market-on-emulator.html
You get a full featured market on your emulator. I don't know if it's legal(allowed by Google), but the image file, that this post mentions, is a link to HTC's download page.
您可以在模拟器上获得功能齐全的市场。我不知道它是否合法(谷歌允许),但这篇文章提到的图像文件是 HTC 下载页面的链接。
I am able to access all the market apps now, right from the emulator, the paid ones, and the copy-protected ones also.
我现在可以直接从模拟器、付费应用和受版权保护的应用访问所有市场应用。
Cheers.
干杯。
Dexter.
德克斯特。
回答by CommonsWare
The emulator does not have the Android Market. The Android Market is only available for devices whose manufacturers have licensed the Android Market from Google.
模拟器没有 Android Market。Android Market 仅适用于其制造商已从 Google 获得 Android Market 许可的设备。
回答by Malder
Android Studio from version 2.3.2 has Google Play System Images. You are able to create the simulator with the Play Store (old name: Android Market App).
2.3.2 版的 Android Studio 具有Google Play System Images。您可以使用 Play 商店(旧名称:Android Market 应用程序)创建模拟器。
回答by battlmonstr
You can use this test framework : android-test-billingto test the In-App billing on the emulator. This library was used in the project Horer - horaires de RER.
您可以使用这个测试框架:android-test-billing在模拟器上测试应用内计费。该库用于 Horer- horaires de RER项目。
回答by Vadivelan
I have did it in my 1.6 emulator it worked fine , Try this,
我已经在我的 1.6 模拟器中做到了,它运行良好,试试这个,
- Download system.img from following link http://www.4shared.com/get/x6pZm3-W/system.html
- Go to avd folder. It will be in your c drive probably ( example C:\Documents and Settings\Vadivelan.android\avd\market.avd)
- Paste the download file
- Now launch the emulator Market is ready
- 从以下链接下载 system.img http://www.4shared.com/get/x6pZm3-W/system.html
- 转到avd文件夹。它可能在您的 c 驱动器中(例如 C:\Documents and Settings\Vadivelan.android\avd\market.avd)
- 粘贴下载文件
- 现在启动模拟器市场准备好了
But am not sure it will work in 2.2 emulator, because the given system.img file is specific to 1.6. For 2.2 download the 2.2 system.img (but i doubt it works, as per my information it gives error)
但我不确定它是否可以在 2.2 模拟器中工作,因为给定的 system.img 文件特定于 1.6。对于 2.2 下载 2.2 system.img(但我怀疑它是否有效,根据我的信息,它给出了错误)
Regards, Vadivelan
问候, 瓦迪维兰