在Eclipse中更新Android应用程序使用的JAR [英] Update JAR used by Android app in Eclipse

查看:194
本文介绍了在Eclipse中更新Android应用程序使用的JAR的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序使用外部JAR文件中的API。此JAR文件已添加到我的项目中,并添加到构建路径中。我的项目构建和运行很好,但现在我需要更新JAR文件(这些类中的一些代码已更改)。我创建了一个新的JAR,并将其复制到我的项目中,然后删除旧的。我需要重新导入JAR文件,还是有一些方法可以让Eclipse刷新/重新检查已删除和重新添加的JAR文件?

My app uses an API from an external JAR file. This JAR file has been added into my project and added in the build path. My project builds and runs just fine, but now I need to update the JAR file (some code in those classes has changed). I created a new JAR and copied it into my project after removing the old one. Do I need to "re-import" the JAR file or is there some way for Eclipse to refresh/re-examine the JAR file Im removed and re-added ?

推荐答案

您应该尝试右键单击包资源管理器中的包名,然后选择刷新,然后强制Eclipse重新编译所有内容,方法是单击项目菜单,然后单击清除... 选项。当我更新任何Eclipse项目中的JAR文件时,这对我有用。

You should try to right click on the package name in the Package Explorer and select "Refresh" and then force Eclipse to recompile everything by clicking on the "Project" menu and click on the "Clean..." option. This works for me whenever I update JAR files in any of my Eclipse projects.

这篇关于在Eclipse中更新Android应用程序使用的JAR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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