当我在Eclipse中新建项目时,这会立即发生。
我的项目中只有1个jar文件,我已经尝试过多次删除它并重新添加,并在此之后清理了项目。
我已经更新了ProGuard(我想),下载了新版本,并按照这里的帖子替换了lib文件夹。
我的default.properties文件如下:
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system use,
# "build.properties", and override values to adapt the script to your
# project structure.
# Project target.
target=android-8
所以我无法对在另一个线程中提到的ProGuard发表任何评论。 我感觉我已经尝试了所有方法,但是仍然存在这个错误。 不过有一件事我注意到了,如果我前往:
window -> preferences -> android -> build
。并取消选中 "当外部jar包包含本地库时强制错误"。那么我会收到:"无法解析R" 而不是Dalvik错误。也没有名为
android.R
的导入。请问有人能提供一些帮助吗?