导入google-play-service库,显示一个红色的X在这个引用旁边的android [英] Importing google-play-service library showing a red X next to this reference android

查看:134
本文介绍了导入google-play-service库,显示一个红色的X在这个引用旁边的android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试使用导入(对于Google地图)在我的项目中添加谷歌播放服务库。在添加路径之后,红色X在此引用旁边,引用不添加。知道如何解决这个问题?

Am trying to add google-play-service library in my project using import(For Google map). After adding the path am getting red X next to this reference and the reference is not adding . Know how to resolve this ?

推荐答案

红色X表示其破坏的链接路径。

The red X means its a broken link path.

http://developer.android.com/google/ play-services / setup.html

将google-play services_lib库项目复制到您的工作区(Android地图项目的文件夹)。图书馆项目可以在以下路径下找到。

Copy the google-play services_lib library project to your workspace (folder where your android map project is). The library project can be found under the following path.

     <android-sdk-folder>/extras/google/google_play_services/libproject/google-play-services_lib library project .

将库项目导入到您的eclipse

Import the library project to your eclipse

单击文件>导入,选择Android>现有Android代码到工作区,然后浏览工作区导入库项目。你可以检查它是否是库项目。右键单击库项目。 Goto属性。点击左侧面板上的Android。您将看到是库检查。

Click File > Import, select Android > Existing Android Code into Workspace, and browse the workspace import the library project. You can check if it is library project. Right click on the library project. Goto properties. Click Android on the left panel. You will see Is Library checked.

右键单击您的Android项目。 Goto属性。在左侧面板中选择Android。单击添加并浏览库项目。选择相同单击确定并应用

Right click on your android project. Goto properties. Choose Android on the left panel. Click on Add and browse the library project. Select the same. Click ok and apply

这篇关于导入google-play-service库,显示一个红色的X在这个引用旁边的android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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