Я пытаюсь интегрировать конвертер объектов XML в Java в модификацию, следуя этому https://futurestud.io/blog/retrofit-how-to-integrate-xml-converter/
Я получаю ошибки сборки, когда добавляю зависимость от моего 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
SO я TRIED this
compile ('com.squareup.retrofit:converter-simplexml:1.9.0') {
exclude group: 'xpp3', module: 'xpp3'
}
Сообщение об ошибке с этим:
trouble processing "javax/xml/stream/events/StartElement.class":
Ill-advised or mistaken usage of a core class (java.* or javax.*)
....
...
Error:Execution failed for task ':app:preDexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
Я попробовал gradle очистить, собрать все, но не использовать. Помогите мне, если у вас есть идеи по этому поводу.