相关疑难解决方法(0)

使用XML将错误构建到build.gradle中的java对象转换器依赖项以进行改造

我正在尝试通过以下https://futurestud.io/blog/retrofit-how-to-integrate-xml-converter/将XML集成到Java对象转换器中进行改造

当我向build.gradle添加依赖项时,我遇到了构建错误.

这是我在build.gradle中添加的内容.compile('com.squareup.retrofit:converter-simplexml:1.9.0')

错误报告:

Information:Gradle tasks [:app:assembleDebug]
Warning:Dependency xpp3:xpp3:1.1.3.3 is ignored for debug as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage it with jarjar to change the class packages
Warning:Dependency xpp3:xpp3:1.1.3.3 is ignored for release as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage it with jarjar to change the class packages
Run Code Online (Sandbox Code Playgroud)

所以我试过这个

compile ('com.squareup.retrofit:converter-simplexml:1.9.0') {
exclude group: 'xpp3', …
Run Code Online (Sandbox Code Playgroud)

xml android retrofit

23
推荐指数
2
解决办法
6450
查看次数

标签 统计

android ×1

retrofit ×1

xml ×1