导入谷歌播放服务图书馆显示一个红色的X旁边的参考机器人机器人、图书馆、红色

2023-09-11 11:24:50 作者:你的泪烫伤我的脸

我试图用进口(对于谷歌地图)添加谷歌播放服务库在我的项目。添加路径后我得到旁边的红色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

复制谷歌播放services_lib库项目到你的工作空间(文件夹在您的Andr​​oid地图项目)。该库项目可在以下路径下找到。

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

点击文件>导入,选择的Andr​​oid>现有Android的code到工作区,并浏览该工作区导入库项目。您可以检查它是否是库项目。右键单击该库项目。转到属性。点击左侧面板上的Andr​​oid系统。你将看到的是库检查。

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.

右键点击你的Andr​​oid项目。转到属性。在左侧面板上选择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

 
精彩推荐