导入 google-play-service 库,在此参考 android 旁边显示红色 X [英] Importing google-play-service library showing a red X next to this reference android

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

问题描述

我正在尝试使用导入(对于 Google 地图)在我的项目中添加 google-play-service 库.添加路径后,此引用旁边会出现红色 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

点击File > Import,选择Android > Existing Android Code into Workspace,浏览workspace导入库项目.您可以检查它是否是库项目.右键单击库项目.转到属性.单击左侧面板上的 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 项目.转到属性.在左侧面板上选择 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 库,在此参考 android 旁边显示红色 X的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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