无法找到图书馆项目,不会建立R.java。

时间:2013-10-21 12:14:43

标签: android eclipse

我有一些未在我的eclipse项目中检测到的库。

enter image description here

问题是它出现了十字架属性 - > Android

enter image description here

如何解决此问题?

4 个答案:

答案 0 :(得分:1)

首先从eclipse和清理项目中删除google play服务

对于Google Play服务,请先安装Google Play服务

SDK Manager - >额外 - > Google Play服务

安装后转到

文件 - >导入 - >您的SDK文件夹路径 - > extras-> extras / google / google_play_services / libproject / google-play-services_lib

答案 1 :(得分:0)

请勿在“libs”文件夹中复制粘贴这些库。相反,导入那些到您的工作区(而不是从libs文件夹)并从那里引用它们。

答案 2 :(得分:0)

RightClick On Project-> property-> Android-> Add->选择google play services lib - > Apply-> ok

答案 3 :(得分:0)

为了在您的应用程序中使用Library项目,应首先在您的工作工作区

中导入所有库项目
How to add Library projects

右键点击您的项目>转到属性> Android>点击添加

enter image description here

然后添加所有必需的库项目

enter image description here

然后点击“应用”,然后单击“确定”

希望这会对你有帮助..

相关问题