在java环境中使用XStream会出现如下错误
1 | Error:Execution failed for task ':app:transformClassesWithDexForRelease'. |
解决方法如下
将原来的Gradle中添加的依赖
1 | compile group: 'com.thoughtworks.xstream', name: 'xstream', version: '1.4.10-java7' |
更改为
1 | compile('com.thoughtworks.xstream:xstream:1.4.10-java7') { |