More than one file was found with OS independent path 'META-INF/rxjava.properties'

开始添加了rxjava的,运行的时候就报了这个错

 

解决方案:

在app的build.gradle里面的defaultConfig里添加即可

packagingOptions {
    //解决编译时com.android.builder.merge.DuplicateRelativeFileException: More than one file was found with OS independent path 'META-INF/rxjava.properties'这个错误
    exclude 'META-INF/rxjava.properties'
}

 

猜你喜欢

转载自blog.csdn.net/lovelixue/article/details/81486651