Android模拟器 - 麻烦创建用户帐户 [英] Android Emulator - Trouble creating user accounts

查看:116
本文介绍了Android模拟器 - 麻烦创建用户帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Android模拟器需要一个用户帐户或两个,这样我可以测试我的应用程序的一些短信/邮件功能。麻烦的是,当我尝试这样做在模拟器:

I need a user account or two in my Android Emulator so that I can test some texting/mailing function of my app. The trouble is that when I try to do this in the emulator:

设置 - >帐户与同步 - >添加账户 - >(my_gmail_account /密码) - >下一步

Settings --> Accounts & sync --> Add account --> (my_gmail_account/password) --> Next

我得到的消息安装程序无法完成 - 无法打开连接到服务器

我的仿真器正常工作和放大器;能够通过它的浏览器连接到互联网。所以,不知道为什么它不工作。过这个问题有没有人跑?

My emulator works fine & is able to connect to internet through it's browser. So not sure why it is not working. Has anyone run across this problem?

谢谢!

推荐答案

@ Varun的的解决方案,为我工作。有两件事情,必须正确配置:仿真器和Eclipse项目

@Varun's solution works for me. There are two things that must be configured correctly: the emulator and your eclipse project.

要设置模拟器,你必须创建一个新的。而不是选择一个Android的目标,选择您需要的谷歌API的目标(这一目标包含了Android平台,但Android的没有出现在它的标题)。见截图:

To set up the emulator, you'll have to create a new one. Instead of selecting an Android target, select the Google APIs target that you need (this target includes the Android platform, but "Android" doesn't appear in it's title). See screenshot:

这模拟器现在应该可以登录到Gmail帐户。

That emulator should now be able to sign into a gmail account.

要配置的Eclipse项目中,右键单击该项目在Package Explorer。从下拉菜单中选择属性。点击机器人的属性窗口的左侧,并选择您选择您的模拟器相同谷歌API的目标。见截图:

To configure your eclipse project, right click the project in the package explorer. Select "Properties" from the dropdown menu. Click "Android" on the left of the properties window, and select the same Google APIs target that you selected for your emulator. See screenshot:

您也应该确保在正确的仿真器选择运行项目。要做到这一点,选择项目属性窗口左侧的运行/调试设置。编辑启动设置,和目标选项卡下选择合适的仿真器(AVD)。

You should also make sure that the correct emulator is selected to run the project. To do this, select "Run/Debug Settings" on the left of the project properties window. Edit the launch settings, and select the appropriate emulator (AVD) under the "Targets" tab.

这为我工作!

这篇关于Android模拟器 - 麻烦创建用户帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆