Jar from library project not resolved in Android app

孤者浪人 提交于 2019-12-07 11:45:12

问题


I'm building an Android app which uses a library that is defined in another Eclipse project (same workspace). All is working fine, but now I added a jar file to the library project's build path. In Eclipse I exported the jar file to make it visible to dependent projects of the library (Build Path -> Order and Export -> mark the jar file). Still Eclipse (ADT) complains that the import cannot be resolved. I have set up a test project for the library as well, and there the imports are visible after exporting the jar file as mentioned above. Is there anything I forgot to configure?

Regards, Martin


回答1:


ADT doesn't seem to pick it up automatically :-/

Manually configuring the main project's build path to rely on the library project's jars worked for me.

Build Path -> Libraries -> Add JARs -> {Library Project}\libs\myjar.jar



来源:https://stackoverflow.com/questions/5790370/jar-from-library-project-not-resolved-in-android-app

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!