Caused by: com.android.builder.merge.DuplicateRelativeFileException: 2 files found with path ‘META-I

宋朝
2023-12-01

  • List item
    Caused by: com.android.builder.merge.DuplicateRelativeFileException: 2 files found with path ‘META-INF/androidx.core_core.version’.
 File2: C:\Users\guoxw\.gradle\caches\modules-2\files-2.1\org.jsoup\jsoup\1.10.3\b842f960942503cf1abbcc8c173a7f2c19d43726\jsoup-1.10.3.jarError:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.
   > com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK org/jsoup/nodes/entities-xhtml.properties
    File1: D:\CooKara\cookaraclient\app\libs\jsoup-1.10.3.jar
    File2: C:\Users\guoxw\.gradle\caches\modules-2\files-2.1\org.jsoup\jsoup\1.10.3\b842f960942503cf1abbcc8c173a7f2c19d43726\jsoup-1.10.3.jar

1:错误原因: 在as的libs中加入了jsoup-1.10.3.jar 包,而as本身带有jsoup.jar包,产生冲突

2.删除了libs下的jsoup包

 类似资料: