无法使用eclipse导入google_play_services

时间:2014-03-13 06:10:30

标签: android eclipse google-play-services

我正在尝试从互联网上添加并添加google_play_servicesGoogle APIs(Android 4.4.2,API 19)。但是当我从eclipse中的路径&lt; google_play_services导入sdk_home>\adt-bundle-windows-x86_64-20130917\sdk\extras\google\google_play_services库时,收到“No projects are found to import”的消息。此外,我在路径<sdk_home>\adt-bundle-windows-x86_64-20130917\sdk\extras\google\google_play_services\libproject\google-play-services_lib\libs中手动检查,我发现只有google-play-services.jargoogle-play-services.jar.properties,但没有google-play-services-lib.jar

当我运行项目时,在日志文件中我收到错误google play services not available due to error 2。我发现了许多线索但似乎没有解决问题。

2 个答案:

答案 0 :(得分:3)

问题解决了。虽然它说&#34; google services are not available due to error 2&#34;我试图将项目添加为android existing code而不是{{1}}。感谢

答案 1 :(得分:1)

似乎您已导入google-play-services_lib项目,刚刚从eclipse IDE删除但未在您的硬盘工作区文件夹中删除。尝试从Workspace文件夹中删除google-play-services_lib项目,然后再次尝试导入项目。

<强> And make sure "Is Library" is checked in properties->Android of google-play-services_lib project.