简体   繁体   English

Android模拟器中的帐户丢失

[英]Missing Accounts in Android Emulator

I've an app that uses Android accounts - GoogleLoginService on (< 2.1) and AccountManager on 2.1 or greater. 我有一个使用Android帐户的应用程序-(<2.1)上的GoogleLoginService和2.1或更高版本上的AccountManager。 the app works fine on phones, but doesn't work on any of the emulators. 该应用程序可以在手机上正常运行,但不能在任何模拟器上运行。

When I try adding accounts in emulator, it fails. 当我尝试在模拟器中添加帐户时,它失败。 In 1.6, option doesn't even exist. 在1.6中,选项甚至不存在。

Is there a workaround? 有解决方法吗? I heard that there is a custom system.img that has Accounts inbuilt, but cant find one. 我听说有一个自定义的system.img,它具有内置的Accounts,但是找不到。 I need it for 1.6, 2.1, 2.2 我需要1.6、2.1、2.2

Are your emulators using the Google APIs versions of Android? 您的模拟器使用的是Android的Google API版本吗? If not, use the SDK manager to get those versions of Android, and create a new emulator with one of them as the target. 如果不是,请使用SDK管理器来获取这些版本的Android,并创建一个以其中一个为目标的新仿真器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM