简体   繁体   English

导入google-play-service依赖红叉

[英]import google-play-service dependency red cross

I'm french and I would use "google-play-service" so I followed the procedure on the official web site to google here and here 我是法国人,我会使用“谷歌播放服务”所以我按照官方网站上的程序谷歌这里这里

And I'm blocked at this step : 我在这一步阻止了:

To add the dependency to Google Play Services into your project Project -> Properties -> Android -> Library, Add -> google-play-services_lib " 要将依赖关系添加到Google Play服务项目 - >属性 - > Android - >库,添加 - > google-play-services_lib“

I explain: Normally the "dependency" must be a "green check" at left. 我解释一下:通常情况下,“依赖”必须是左边的“绿色检查”。

After to press the button "Apply" the "green check" is always green, but when I leave the windows (whith press button "OK") and I return on this windows (mouse right>properties>Android) I didn't have a "green check" but I have now a "red cross" (shoot3) ... I don't understand why ? 按下“应用”按钮后,“绿色检查”始终为绿色,但是当我离开窗口时(按下按钮“确定”)并返回此窗口(鼠标右键>属性> Android)我没有一个“绿色检查”但我现在有一个“红十字”(shoot3)......我不明白为什么?

Did you have the same problem ? 你有同样的问题吗?

screenshot 1 , screenshot 2 and screenshot 3 截图1截屏2截图3

Try to copy the google-play-services_lib next to your project's directory and open it from there. 尝试将google-play-services_lib复制到项目目录旁边,然后从那里打开它。

Also you don't have to use Google Api's anymore - you can use Android Api. 此外,您不必再使用Google Api了 - 您可以使用Android Api。

I was also having same problem. 我也有同样的问题。 Location of Google play services and your project should be same. Google Play服务和您的项目的位置应该相同。

If Google play services is in your work space then move your project to work space too. 如果Google Play服务位于您的工作区中,那么您的项目也会移动到工作区。

Move Project to work space: Import project and check copy to work space! 将项目移动到工作空间:导入项目并检查复制到工作空间!

There can be one of the following mistakes: 1. Wrong Path 2. Since you have imported the project, so if by mistake you have deleted this imported project from workspace and while deleting you tick on delete contents from disk, it removes all files from android-sdk\\extras\\google\\google_play_services\\libproject\\google-play-services_lib.In this cases re install google services from sdk manager. 可能存在以下错误之一:1。错误的路径2.由于您已导入项目,因此如果您错误地从工作区删除了此导入的项目,并且在删除时勾选了从磁盘删除内容,则会删除所有文件android-sdk \\ extras \\ google \\ google_play_services \\ libproject \\ google-play-services_lib。在这种情况下,请从sdk manager重新安装google服务。 3.while importing project dont forget to check the box saying "Copy projects into the workspace" 3.而导入项目时别忘了勾选“将项目复制到工作区”复选框

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

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