添加对库项目的引用

时间:2013-02-11 10:45:39

标签: android eclipse google-play-services

当我想用Eclipse添加对我的Android项目的google-play-services_lib的引用时,我遇到了问题。 我在developer.android.com上按照这里描述的步骤进行操作,当我执行添加时它似乎有效,因为我有这个图标:http://cyberterry.fr/pb_library2.png

但之后,当我点击apply / ok并关闭此窗口时,如果我重新打开同一个窗口,我有这个图标:

enter image description here

我不明白..

感谢您的帮助。

1 个答案:

答案 0 :(得分:0)

在“android-sdk-macosx / extras / google / google_play_services / libproject / google-play-services_lib / libs”中你有一个名为“google-play-services.jar”的.jar将此.jar复制到一个名为的文件夹中项目根目录中的“libs”。忘了以这种方式添加你正在添加。它必须工作。