ok...this is driving me nuts.
好吧……这简直快把我逼疯了。
I've added and re-added the Google Play Services Lib multiple times (with and without copying to workspace) but when I try adding it as a reference to my project, it always shows as a red X next to it when I go back to the project properties as in this guy's screen captures: Adding a reference to a library project
我已经添加并重新添加谷歌播放服务多次*(有或没有复制到工作区),但是当我尝试添加我的项目作为参考,它总是显示一个红色的X,当我回到项目属性在这家伙的屏幕截图:添加一个引用一个库项目
No errors print to the console. Anyone know why this would show up as a red X or how to debug this? I've added Android Bar Sherlock the same way w/o issues. It's just the Google Play Services library that's driving me up the wall :-P
控制台没有错误输出。有人知道为什么会出现红色X或者如何调试吗?我添加了Android Bar Sherlock和w/o问题一样。只是谷歌的游戏服务库把我逼上了绝路:-P。
I also tried creating a new project and following this quickstart and have the same issue. It's almost like my Eclipse is broken in some way but it's a fresh install :-P https://docs.google.com/document/pub?id=19nQzvKP-CVLd7_VrpwnHfl-AE9fjbJySowONZZtNHzw
我还尝试创建一个新项目,并在这个快速启动之后,也有同样的问题。就像我的Eclipse在某种程度上被打破了,但它是一个全新的安装:-P https://docs.google.com/document/pub?
I can work around the compile time errors by adding the library in the project properties java build path, but this should not be the way to fix it. And if I try running the app on my SGS3 this way, it crashes w/ the error in the title. I can add the play library jar to my libraries, but then it crashes with an error about looking having problems looking up r$styled so that doesn't work either :-P
我可以通过在项目属性java构建路径中添加库来解决编译时错误,但这不是修复它的方法。如果我用这种方式在SGS3上运行这个应用程序,它就会在标题中出错。我可以将play library jar添加到我的库中,但是当它出现问题时,它会出现错误,查找r$样式的问题,所以这也不起作用:-P。
1 个解决方案
#1
0
Figured it out finally. Got bit by this:
终于搞懂了。有一点:
unable to resolve static method: Lcom/google/android/gms/common/GooglePlayServicesUtil;.isGooglePlayServicesAvailable https://code.google.com/p/android/issues/detail?id=27199
无法解决静态方法:Lcom/谷歌/android/gms/common/GooglePlayServicesUtil;isGooglePlayServicesAvailable https://code.google.com/p/android/issues/detail?id=27199
Everything runs properly now. Damned annoying bug. I remember being bit by it years ago and it's still not fixed :-P
现在一切正常运行。该死的恼人的虫子。我记得几年前被它咬了一口,现在还没修好:-P。
#1
0
Figured it out finally. Got bit by this:
终于搞懂了。有一点:
unable to resolve static method: Lcom/google/android/gms/common/GooglePlayServicesUtil;.isGooglePlayServicesAvailable https://code.google.com/p/android/issues/detail?id=27199
无法解决静态方法:Lcom/谷歌/android/gms/common/GooglePlayServicesUtil;isGooglePlayServicesAvailable https://code.google.com/p/android/issues/detail?id=27199
Everything runs properly now. Damned annoying bug. I remember being bit by it years ago and it's still not fixed :-P
现在一切正常运行。该死的恼人的虫子。我记得几年前被它咬了一口,现在还没修好:-P。