1

我所做的只是将HoloEverywhere Library作为库添加到我的项目并更改清单

android:theme="@android:style/Theme.Holo.NoActionBar.Fullscreen" >

android:theme="@style/Holo.Theme.NoActionBar.Fullscreen" >

现在我无法运行我的项目,我得到:

[2014-07-14 14:17:26 - Dex Loader] Unable to execute dex: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl;
[2014-07-14 14:17:26 - MyApp] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl;

我不知道这意味着什么或如何解决它。它在没有 HoloEverywhere 的情况下完美运行。

PS:别问了,HoloEverywhere 被标记为库,它和我的项目都是用 4.4.2 构建的。我也在使用其他一些库,但不应该干涉,因为这些对 UI 来说并不多。

编辑:检查像我这样的其他一些问题,我想我必须从 lib 中删除 android-support-v4 之一。但是哪一个?

  • 我的项目android-support-v4.jar在 lib
  • 正如我所提到的,我正在使用的另一个库android-support-v4.jar在其 lib 文件夹中,这两个库之前工作得很好
  • HoloEverywheresupport-v4-19.1.0.jar在其 lib 文件夹中
4

1 回答 1

0

我最终android-support-v4.jar从所有项目/库中删除了所有内容,只离开support-v4-19.1.0.jar了 HoloEverywhere。如果 eclipse 说android-support-v4.jar在任何库/项目中都是必要的,那就放support-v4-19.1.0.jar吧。

我想support-v4-19.1.0.jar这是一个建立在 . 之上的自定义库android-support-v4.jar,因此它包括所有内容等等。

于 2014-07-16T20:33:28.797 回答