在运行app时,android studio报如下错误
Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.
> More than one file was found with OS independent path 'META-INF/rxjava.properties'
解决方法:在对应的module下,找到defaultConfig项,添加如下配置可解决:
defaultConfig {
...
packagingOptions {
exclude 'META-INF/rxjava.properties'
}
...
}