2013-03-27 66 views
2

我在Android应用中使用了Google Play服务的授权与GoogleAuthUtil。我在大约2个月前完成了这部分工作,它一直工作得很好,然后开始工作。昨天,我更新了SDK。现在我在我的应用程序中出现这个错误。它说“GoogleAuthUtil无法解析”。
更新的SDK中有任何更改吗?
我该如何解决这个问题?GoogleAuthUtil无法解析

我输入以下内容:

import com.google.android.gms.auth.GoogleAuthException; 
import com.google.android.gms.auth.GoogleAuthUtil; 
import com.google.android.gms.auth.GooglePlayServicesAvailabilityException; 
import com.google.android.gms.auth.UserRecoverableAuthException. 

我越来越

com.google.android.gms.auth不能得到解决。

+0

我导入FOLL:进口com.google.android.gms.au th.GoogleAuthException; import com.google.android.gms.auth.GoogleAuthUtil; import com.google.android.gms.auth.GooglePlayServicesAvailabilityException; import com.google.android.gms.auth.UserRecoverableAuthException。我得到com.google.android.gms.auth无法解析。 – 2013-03-27 17:33:28

回答

6

每当您更新任何库时,请确保首先将其从您的引用中删除并再次将其添加到您的引用。之后,清理该项目。如果需要重新启动Eclipse。我觉得你很好去! :)

+1

优秀!!非常感谢!!! – 2013-03-27 18:01:28

+0

我也有同样的问题。你可以解释如何添加和删除从referance。 – SREEJITH 2013-04-11 06:48:42

+0

我的意思是只删除所有的JAR引用并再次添加它们...在Android属性中... Sry的最新回复 – 2013-04-13 19:20:23

3

只需从AndroidManifest.xml中删除<uses-library>标记并重新启动并清除所有内容。肯定它会开始运行。

+0

完美答案!!! – 2013-05-03 17:32:04

2

如果您使用的是Android Studio,请按照以下步骤操作。

  1. 开放SDK Manager - >SDK Tool - >点击Google Play服务和应用
  2. 打开Module SettingProject Structure - 上+按钮>上Dependencies选项卡上单击 - >选择1.Library Dependency - >选择play-services (...)然后单击确定
  3. 清洁项目由Build - >Clean Project