无法解决静态方法:LCOM /谷歌/安卓/ GMS /普通/ GooglePlayServicesUtil; .isGooglePlayServicesAvailable [英] unable to resolve static method: Lcom/google/android/gms/common/GooglePlayServicesUtil;.isGooglePlayServicesAvailable

查看:338
本文介绍了无法解决静态方法:LCOM /谷歌/安卓/ GMS /普通/ GooglePlayServicesUtil; .isGooglePlayServicesAvailable的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

确定...这是推动我疯了。

ok...this is driving me nuts.

我添加并重新加入谷歌播放服务库多次(有和没有复制到工作区),但是当我尝试将其添加为我的项目的引用,它总是显示为一个红色的X旁边时,我回去项目属性在这个家伙的屏幕截图:
  添加引用到库项目

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或如何调试呢?我已经添加了Android的酒吧福尔摩斯同样的方式W / O问题。这只是谷歌Play服务库的驾驶我了墙:-P

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

我也尝试创建一个新的项目,并按照本快速入门,并有同样的问题。这几乎就像我的Eclipse以某种方式打破,但它是一个新的安装:-P
https://docs.google.com/document/pub?id=19nQzvKP-CVLd7_VrpwnHfl-AE9fjbJySowONZZtNHzw

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

我可以通过添加库项目属性Java构建路径解决编译时错误,但是这不应该是解决它的方式。如果我尝试运行我的SGS3应用这种方式,它崩溃瓦特/在标题中错误。我可以玩库jar添加到我的图书馆,但随后一个错误崩溃的望着仰视的风格,使R $有问题无法正常工作或:-P

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

推荐答案

想通了最后。通过这引起了一下:

Figured it out finally. Got bit by this:

<一个href=\"http://stackoverflow.com/questions/17606319/unable-to-resolve-static-method-lcom-google-android-gms-common-googleplayservic\">unable要解决静态方法:LCOM /谷歌/安卓/ GMS /普通/ GooglePlayServicesUtil; .isGooglePlayServicesAvailable
的https://$c$c.google.com/p /安卓/问题/细节?ID = 27199

现在一切运行正常。
该死的恼人的错误。我记得几年前被它一下,它依然不动:-P

Everything runs properly now. Damned annoying bug. I remember being bit by it years ago and it's still not fixed :-P

这篇关于无法解决静态方法:LCOM /谷歌/安卓/ GMS /普通/ GooglePlayServicesUtil; .isGooglePlayServicesAvailable的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆