简体   繁体   English

无法引用google-play-service lib。 我该如何解决?

[英]Can't make a reference to google-play-service lib. How can i fix it?

I am beginner in android app development, and i am now learning how to build a app by using Google map API v2. 我是android应用程序开发的初学者,现在正在学习如何使用Google Map API v2构建应用程序。

Something like this: http://wptrafficanalyzer.in/blog/showing-current-location-in-google-maps-using-api-v2-with-supportmapfragment/ 像这样的东西: http : //wptrafficanalyzer.in/blog/showing-current-location-in-google-maps-using-api-v2-with-supportmapfragment/

However, i can't make a reference to google-play-service lib in Eclipse 但是,我无法在Eclipse中引用google-play-service lib

The following is my steps: 以下是我的步骤:

  1. Right Click-> Properties-> Andriod-> Library-> Add the google play service lib from my workspace 右键单击->属性-> Andriod->库->从我的工作区添加google play服务库

  2. It seem work (have a green tick) before I press the OK button 在我按“确定”按钮之前,似乎工作正常(带有绿色的勾号)

  3. But when i do the redo the step 1 to check it , the green tick become a red cross 但是当我重做步骤1进行检查时,绿色的勾变成红色的叉

How can i fix it? 我该如何解决?

Try restarting the eclipse and do it again and if still does not work check that the library you are linking is in the same partition of your hard drive as the project. 尝试重新启动eclipse,然后再次执行,如果仍然无法正常工作,请检查所链接的库是否与项目位于硬盘驱动器的同一分区中。 They have to be in same drive to work properly with eclipse 他们必须在同一个驱动器中才能使用Eclipse正常工作

go to your project properties, then build path, then order and export. 转到项目属性,然后构建路径,然后订购并导出。 make sure it is ticked.. 确保已勾选。

if that dosnt make an empty object of any class in play services and hover it, then go to fix project setup.... in there should be either add jar or add library.... 如果该命令在播放服务中使任何类的空对象悬停,然后去修复项目设置...。应该在其中添加jar或添加库。

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

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