如何在Eclipse另一个Android项目添加的Andr​​oid库项目 [英] How to add android library project in another android project in eclipse

查看:109
本文介绍了如何在Eclipse另一个Android项目添加的Andr​​oid库项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在另一个项目中添加库项目,但我无法添加它。

我做了如项目A 通过将在其属性,并检查 isLibrary 复选框库项目。然后我试图,通过进入其属性在项目B补充这一点,并通过点击添加按钮并选择项目A 作为库。<​​/ p>

然后我点击确定,但是当我尝试使用 A计划中的任何类或引用,我得到,这不是限定的错误。我检查再度项目B的属性,并没有提述项目A ,我刚才建立的。

该引用会自动消失。我需要帮助这个。

修改:这两个项目都在同一个工作区


解决方案

该porblem是只读的项目B 的文件persmissions。我淘汰只读权限,它现在正在工作。感谢您的建议

I am trying to add a library project in another project but I am unable to add it.

I made e.g. Project A as a library project by going in to its properties and checking isLibrary checkbox. Then I tried to add this in Project B , by going into its properties , and by clicking Add button and selecting Project A as a library.

Then I clicked on ok , but when I try to use any class or reference of Project A , I get an error that it is not defined. I checked Project B's properties again , and there is no reference there of Project A, which I established earlier.

The reference is automatically disappearing. I need help in this.

Edit : Both Projects are in same workspace.

解决方案

The porblem was read-only persmissions of files of Project B. I eliminated read-only permissions and it is working now. Thanks for suggestions

这篇关于如何在Eclipse另一个Android项目添加的Andr​​oid库项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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