Error:Execution failed for task':app:transformResourcesWithMergeJavaResForDebug'.> More than one file was found with OS independent path 'META-INF/rxjava.properties'
(錯誤大致意思為:存在一個違規(guī)操作逗噩,類似于RXJava)
解決方案:在build.gradle(app)android下添加
? packagingOptions {
? ? ? ? exclude 'META-INF/DEPENDENCIES.txt'
? ? ? ? exclude 'META-INF/NOTICE'
? ? ? ? exclude 'META-INF/NOTICE.txt'
? ? ? ? exclude 'META-INF/LICENSE'
? ? ? ? exclude 'META-INF/LICENSE.txt'
? ? ? ? exclude 'META-INF/rxjava.properties'
? ? ? ? exclude 'META-INF/rxjava.PROPERTIES'
? ? ? ? exclude 'META-INF/RXJAVA.properties'
? ? ? ? exclude 'META-INF/RXJAVA.PROPERTIES'
? ? ? ? exclude 'META-INF/rxjava'
? ? ? ? exclude 'META-INF/RXJAVA'
? ? }
然后重新編譯即可