如何在Eclipse另一个Android项目添加的Android库项目 [英] How to add android library project in another android project in eclipse
问题描述
我想在另一个项目中添加库项目,但我无法添加它。
我做了如 然后我点击 该引用会自动消失。我需要帮助这个。 修改:这两个项目都在同一个工作区 该porblem是只读的 I am trying to add a library project in another project but I am unable to add it. I made e.g. Then I clicked on 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 这篇关于如何在Eclipse另一个Android项目添加的Android库项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!项目A
通过将在其属性,并检查 isLibrary
复选框库项目。然后我试图,通过进入其属性在项目B补充这一点,并通过点击
添加
按钮并选择项目A
作为库。</ p>确定
,但是当我尝试使用 A计划中的任何类或引用
,我得到,这不是限定的错误。我检查再度项目B的
属性,并没有提述项目A
,我刚才建立的。项目B
的文件persmissions。我淘汰只读权限,它现在正在工作。感谢您的建议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.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.Project B
. I eliminated read-only permissions and it is working now. Thanks for suggestions