加入一个Android库罐子没有得到在项目中引用 [英] Jars added to an Android library are not getting referenced in the project
问题描述
我已经创建了一个Android的图书馆,在那里我包括一些外部罐子。这些罐子在库项目出现在引用的库。当我引用这个库我的其他项目,它是不是能够链接已被添加到库中的罐子。这表明该项目在错误的引用的库。
I have created an Android library where I included some external jars. These jars are seen in "Referenced Libraries" under the library project. When I reference this library in my other project, it is not able to link the jars that had been added to library. It shows errors to the referenced library under the project.
这应该已经把这些加在库中的罐子,相反,它表明在这我已经加入这个库项目中的错误。谁能帮我算出这个?
It should have linked the jars which are added in library, rather, it shows an error in the project in which I have added this library. Can anyone help me figure this out?
推荐答案
如果你有你的库项目适当地包括,转到属性 - > Java构建路径 - >订单和出口
并检查所有你希望在你的主要项目包括JAR文件。这应该工作,如果一切都在同一个工作区。
If you've got your library project properly included, go to Properties -> Java Build Path -> Order and Export
and check all the JARs you wish to include in your main project. This should work, if everything's in the same workspace.
这篇关于加入一个Android库罐子没有得到在项目中引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!