1

我正在尝试编译我的 Android 应用程序并得到这些奇怪的错误(不是警告,实际错误)

Android Dex: [MyApp] (org.eclipse.jdt.internal.compiler.DefaultErrorHandlingPolicies$1) that doesn't come with an
Android Dex: [MyApp] associated EnclosingMethod attribute. This class was probably produced by a
Android Dex: [MyApp] compiler that did not target the modern .class file format. The recommended
Android Dex: [MyApp] solution is to recompile the class from source, using an up-to-date compiler
Android Dex: [MyApp] and without specifying any "-target" type options. The consequence of ignoring

Android Dex:[MyApp] 处理“javax/transaction/HeuristicCommitException.class”时遇到问题:......

我已经编译这个应用程序很长一段时间没有遇到任何问题,但最近做了很多更改,包括引入支持包和 actionBarSherlock ......

我在源代码中找不到与错误消息相关的任何内容。

据我所知,在导入 JAR 时会出现此错误?

我正在使用 IntelliJ 12 来管理我的依赖项(不是 Maven)。

他们是:

MyApp:
 - MyOtherModule
 - actionbarsherlock

MyOtherModule:
 - JUnit
 - commons-lang3-3.1
 - jetty-distribution-9.0.3
 - google-gson-2.2

actionbarsherlock:
 - android-support-v4.jar

全部设置为“编译”。

不幸的是,目前很难逐个删除这些库以查看问题所在...是否有其他人在使用这些 JAR 时遇到过此错误,或者知道如何调试它?

万分感谢。

4

1 回答 1

0

问题库是 Jetty - 删除该导入修复它。我想我需要使用不同的 HttpClient ,因为它似乎由于某种原因与 Android 不兼容。

于 2013-06-30T04:07:11.760 回答