使用谷歌登入按钮,在仿真器故障仿真器、登入、按钮、故障

2023-09-06 04:14:23 作者:栀子花开季节

当我点击谷歌登入按钮,会显示如下对话框。

When I click the Google sign-in button, it shows the following dialog.

我点击更新,并没有任何反应,但我的logcat给出了下面的输出。

I click on Update and nothing happens, but my logcat gives the following output.

01-24 07:38:48.121: W/GooglePlayServicesUtil(1305): Google Play services out of date.  Requires 4132500 but found 4033530
01-24 07:38:50.321: E/SettingsRedirect(1305): Can't redirect to app settings for Google Play services

我怎样才能得到这个工作对我的模拟器?

How can I get this to work on my emulator?

在我运行下面的命令来查看错误,并得到了以下的输出:

After it failed I ran the following command to see the error and got the following output:

C:\adt-bundle-windows-x86_64-20130729\sdk\platform-tools>adb logcat -d -s Packag
eManager:*
--------- beginning of /dev/log/main
--------- beginning of /dev/log/system
W/PackageManager(  390): Running ENG build: no pre-dexopt!
D/PackageManager(  390): No files in app dir /vendor/app
W/PackageManager(  390): Package com.example.android.apis desires unavailable sh
ared library com.example.will.never.exist; ignoring!
W/PackageManager(  390): Package com.example.android.apis desires unavailable sh
ared library com.example.will.never.exist; ignoring!
I/PackageManager(  390): Time to scan packages: 5.417 seconds
W/PackageManager(  390): Not granting permission android.permission.GLOBAL_SEARC
H to package com.android.quicksearchbox (protectionLevel=18 flags=0x8be45)
W/PackageManager(  390): Unknown permission com.android.smspush.WAPPUSH_MANAGER_
BIND in package com.android.phone
W/PackageManager(  390): Unknown permission com.android.vending.billing.BILLING_
ACCOUNT_SERVICE in package com.google.android.gsf.login
W/PackageManager(  390): Unknown permission com.android.vending.billing.ADD_CRED
IT_CARD in package com.google.android.gsf.login
W/PackageManager(  390): Unknown permission com.android.vending.billing.IBilling
AccountService.BIND2 in package com.google.android.gsf.login
W/PackageManager(  390): Unknown permission com.android.vending.TOS_ACKED in pac
kage com.google.android.gsf.login
W/PackageManager(  390): Unknown permission com.android.chrome.TOS_ACKED in pack
age com.google.android.gsf.login
W/PackageManager(  390): Not granting permission android.permission.ACCESS_DOWNL
OAD_MANAGER to package com.android.browser (protectionLevel=18 flags=0x9be45)
W/PackageManager(  390): Not granting permission android.permission.SEND_DOWNLOA
D_COMPLETED_INTENTS to package com.android.browser (protectionLevel=2 flags=0x9b
e45)
W/PackageManager(  390): Not granting permission android.permission.BIND_APPWIDG
ET to package com.android.widgetpreview (protectionLevel=18 flags=0x8be44)
W/PackageManager(  390): Unknown permission android.permission.INSTALL_DRM in pa
ckage com.android.mms
W/PackageManager(  390): Not granting permission android.permission.DELETE_PACKA
GES to package com.svox.pico (protectionLevel=18 flags=0x8be45)
W/PackageManager(  390): Not granting permission android.permission.DEVICE_POWER
 to package com.android.deskclock (protectionLevel=2 flags=0x48be45)
W/PackageManager(  390): Not granting permission android.permission.READ_DREAM_S
TATE to package com.google.android.gsf (protectionLevel=2 flags=0x40083e45)
I/PackageManager(  390): No secure containers on sdcard
W/PackageManager(  390): Not granting permission android.permission.GLOBAL_SEARC
H to package com.android.quicksearchbox (protectionLevel=18 flags=0x8be45)
W/PackageManager(  390): Unknown permission com.android.smspush.WAPPUSH_MANAGER_
BIND in package com.android.phone
W/PackageManager(  390): Unknown permission com.android.vending.billing.BILLING_
ACCOUNT_SERVICE in package com.google.android.gsf.login
W/PackageManager(  390): Unknown permission com.android.vending.billing.ADD_CRED
IT_CARD in package com.google.android.gsf.login
W/PackageManager(  390): Unknown permission com.android.vending.billing.IBilling
AccountService.BIND2 in package com.google.android.gsf.login
W/PackageManager(  390): Unknown permission com.android.vending.TOS_ACKED in pac
kage com.google.android.gsf.login
W/PackageManager(  390): Unknown permission com.android.chrome.TOS_ACKED in pack
age com.google.android.gsf.login
W/PackageManager(  390): Not granting permission android.permission.ACCESS_DOWNL
OAD_MANAGER to package com.android.browser (protectionLevel=18 flags=0x9be45)
W/PackageManager(  390): Not granting permission android.permission.SEND_DOWNLOA
D_COMPLETED_INTENTS to package com.android.browser (protectionLevel=2 flags=0x9b
e45)
W/PackageManager(  390): Not granting permission android.permission.BIND_APPWIDG
ET to package com.android.widgetpreview (protectionLevel=18 flags=0x8be44)
W/PackageManager(  390): Unknown permission android.permission.INSTALL_DRM in pa
ckage com.android.mms
W/PackageManager(  390): Not granting permission android.permission.DELETE_PACKA
GES to package com.svox.pico (protectionLevel=18 flags=0x8be45)
W/PackageManager(  390): Not granting permission android.permission.DEVICE_POWER
 to package com.android.deskclock (protectionLevel=2 flags=0x48be45)
W/PackageManager(  390): Not granting permission android.permission.READ_DREAM_S
TATE to package com.google.android.gsf (protectionLevel=2 flags=0x40083e45)
I/PackageManager(  390):   Action: "android.intent.action.SENDTO"
I/PackageManager(  390):   Category: "android.intent.category.DEFAULT"
I/PackageManager(  390):   Scheme: "sms"
I/PackageManager(  390): Adding preferred activity ComponentInfo{com.android.mms
/com.android.mms.ui.ComposeMessageActivity} for user 0 :
I/PackageManager(  390):   Action: "android.intent.action.SENDTO"
I/PackageManager(  390):   Category: "android.intent.category.DEFAULT"
I/PackageManager(  390):   Scheme: "smsto"
I/PackageManager(  390): Adding preferred activity ComponentInfo{com.android.mms
/com.android.mms.ui.ComposeMessageActivity} for user 0 :
I/PackageManager(  390):   Action: "android.intent.action.SENDTO"
I/PackageManager(  390):   Category: "android.intent.category.DEFAULT"
I/PackageManager(  390):   Scheme: "mms"
I/PackageManager(  390): Adding preferred activity ComponentInfo{com.android.mms
/com.android.mms.ui.ComposeMessageActivity} for user 0 :
I/PackageManager(  390):   Action: "android.intent.action.SENDTO"
I/PackageManager(  390):   Category: "android.intent.category.DEFAULT"
I/PackageManager(  390):   Scheme: "mmsto"
I/PackageManager(  390): Adding preferred activity ComponentInfo{com.android.mms
/com.android.mms.ui.ComposeMessageActivity} for user 0 :
W/PackageManager(  390): Attempt to delete unknown system package com.android.ve
nding
W/PackageManager(  390): Attempt to delete unknown system package com.android.ve
nding
W/PackageManager(  390): Attempt to delete unknown system package com.google.and
roid.gms

C:\adt-bundle-windows-x86_64-20130729\sdk\platform-tools>

我该怎么做的呢?

What am I supposed to make of this?

推荐答案

我发现网页上的解决方案的 如何安装谷歌地图V2在Android模拟器 的。

I found the solution on the page How to install Google Maps v2 in Android Emulator.

这仅与Android 4.22的作品,但我认为同样的想法可以应用到4.4版本,相应的文件。

It only works with Android 4.22, but I think that the same idea can be applied to version 4.4 with the appropriate files.

下载previous页上列出的三个文件:com.android.vending-19032013.apk,com.google.android.gms-19032013.apk和谷歌播放服务的lib R5

Download the three files listed on the previous page: com.android.vending-19032013.apk, com.google.android.gms-19032013.apk and Google play services lib r5.

创建一个AVD设备与普通的目标(安卓4.22,API 17),采用英特尔凌动(86)如果你想使用。

Create an AVD device with a normal target (Android 4.22, API 17), with Intel Atom (x86) if you want to use.

从安装Android的控制台两个 APK 文件。

Install the two APK files from Android console.

创建你的应用程序为Android 4.22

Create your app for Android 4.22

不使用谷歌,播放服务,LIB您的系统。您必须使用第三方下载的文件。

DO NOT USE the google-play-services-lib of your system. You must use the third downloaded file.

 
精彩推荐
图片推荐