gpt4 book ai didi

java - 向 Android 应用程序添加依赖项后出错

转载 作者:行者123 更新时间:2023-11-29 21:55:29 25 4
gpt4 key购买 nike

我正在开发一个 Android 应用程序,我正在尝试向我的 pom.xml 文件添加一个依赖项:

    <dependency>
<groupId>org.simpleframework</groupId>
<artifactId>simple-xml</artifactId>
<version>2.6.7</version>
</dependency>

我什至没有在任何地方使用它,但在我添加该依赖项之后,当我尝试运行该应用程序时,出现错误:

 Conversion to Dalvik format failed with error 1


Ill-advised or mistaken usage of a core class (java.* or javax.*)
when not building a core library.

为什么我不能运行它?

最佳答案

尝试从简单导入中排除 stax、stax-api 和 xpp3,如下所述: Android: error including/repacking dependencies which reference javax core classes

关于java - 向 Android 应用程序添加依赖项后出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13348693/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com