从项目库中的jar Android应用程序没有得到解决 [英] Jar from library project not resolved in Android app

查看:118
本文介绍了从项目库中的jar Android应用程序没有得到解决的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立一个Android应用程序,它使用的是在另一个Eclipse项目(同一个工作区)中定义的库。所有工作正常,但现在我添加了一个jar文件到库项目的构建路径。在Eclipse我出口的jar文件,使其图书馆的相关项目可见(构建路径 - >在线订单和出口 - >标记的jar文件)。还是Eclipse中(ADT)抱怨说,进口无法得到解决。
我已成立了库测试项目,以及,那里的进口上述出口的jar文件后可见。
有什么我忘了配置?

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?

问候,
马丁

推荐答案

ADT似乎并没有自动把它捡起来: - /

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.

构建路径 - >库 - >添加JAR文件 - > {图书馆项目} \\库\\ my​​jar.jar

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

这篇关于从项目库中的jar Android应用程序没有得到解决的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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