不能导入进口com.google.android.gcm.GCMBaseIntentServicegoogle、com、android、GCMBaseIntentService

2023-09-04 03:26:31 作者:初戀無限好,只是挂得早

大家好我有一个巨大的问题就在这里。我有一个使用GCM但进口解决不了的项目。我试着在这个网站和其他所有其他的建议,但似乎没有任何工作。请帮忙 我已经下载了库中复制的jar到我的/ libs文件夹并将其添加到构建路径

guys i have a huge problem here. i have a project that uses gcm but the import can't be resolved. I've tried all other suggestion on this site and others but nothing seems to work. please help I've downloaded the library copied the jar into my /libs folder and added it to build path

但我仍然对进口得到了一个错误

but i still got an error on the import

有什么可以是问题?

推荐答案

先删除谷歌从Eclipse和清洁工程发挥服务

first delete google play services from eclipse and clean project

有关谷歌播放服务先安装谷歌播放服务

For google play services first install Google play Services

SDK管理器 - >附加功能 - >谷歌播放服务

SDK Manager -> Extras -> Google play Services

安装到后

文件 - >导入 - >您的SDK文件夹的路径 - > extras->演员/谷歌/ google_play_services / libproject /谷歌播放services_lib

File->import->your SDK folder path ->extras->extras/google/google_play_services/libproject/google-play-services_lib

确认gcm.jar您的ADT是存在

Make sure gcm.jar is exist on your adt

/Users/SS/Desktop/Android/adt-bundle-mac-x86_64-20130717/sdk/extras/google/gcm/gcm-client/dist

/Users/SS/Desktop/Android/adt-bundle-mac-x86_64-20130717/sdk/extras/google/gcm/gcm-client/dist