1. 程式人生 > >more than one file was found with os independent path'com/unionpay/blepayservice/'

more than one file was found with os independent path'com/unionpay/blepayservice/'

專案引用jar衝突或有相同的兩份以上存在,系統發現了多個路徑,造成系統不知道指向那個

報錯:more than one file was found with os independent path 'com/unionpay/blepayservice/'

報錯Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
 > com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex

解決:都是jar衝突問題,模組眾多,應該且有一個build檔案中comple project('xxx.jar'),其它模組provided project(':xxx.jar')