简体   繁体   English

GoogleApiClient无法在Android Eclipse中解析

[英]GoogleApiClient not resolving in Android Eclipse

I am getting this error 我收到此错误

"GoogleApiClient cannot be resolved to a type" “ GoogleApiClient无法解析为类型”

when attempting to build a new api client. 尝试构建新的api客户端时。 I have followed the directions to the tee from this site: https://developers.google.com/places/android/start , and I believe I have done everything else necessary as far as setting up the build target to Google APIs + Android 5.1.1. 我已经按照以下网站上的发球区域的指示进行操作: https : //developers.google.com/places/android/start ,并且我相信我已经完成了将Google Targets + Android的构建目标设置为其他一切必要的工作5.1.1。

I think I have down to this error I get from the console : 我认为我已经从控制台收到此错误:

invalid resource directory name: C: ... JavaWorkspace\\google-play- services_lib\\res values-ne-rNP (1) 无效的资源目录名称:C:... JavaWorkspace \\ google-play-services_lib \\ res values-ne-rNP(1)

because that file does not exist in that location, but I am not sure how to resolve that. 因为该文件在该位置不存在,但我不确定如何解决。

Thanks! 谢谢!

Found the problem, and a work around, not an actual solution though. 找到了问题,并且解决了,尽管不是实际的解决方案。 For some reason eclipse would add a space in between res and values: C: ... JavaWorkspace\\google-play- services_lib\\res values-ne-rNP. 由于某种原因,eclipse会在res和值之间添加一个空格:C:... JavaWorkspace \\ google-play-services_lib \\ res values-ne-rNP。 I think because it was in Google Drive. 我想是因为它在Google云端硬盘中。 So I switched my workspace and it fixed itself. 因此,我切换了工作空间,并修复了它自己。

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

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