More than one file was found with OS independent path 'META-INF/LICENSE' | Error:Could not read \build\intermediates\typedefs.txt (系統找不到指定的文件。)


FAQ1:

Error:Could not read E:\new\PlatformLibrary\CommonLibrary\build\intermediates\typedefs.txt: E:\new\PlatformLibrary\CommonLibrary\build\intermediates\typedefs.txt (系統找不到指定的文件。)

 

FAQ2:
Error:Execution failed for task ':TerminalLibrary:transformResourcesWithMergeJavaResForDebug'.
> More than one file was found with OS independent path 'META-INF/LICENSE'
Information:BUILD FAILED

 

Resolve_FAQ1:

在報該編譯錯誤的module的build.gradle中加入如下配置項,排除掉中間生成的typedxx.txt文件

    packagingOptions {
        exclude 'typedefs.txt'
    }

 

Resolve_FAQ2:

在報該編譯錯誤的module的build.gradle中加入如下配置項,排除掉中間生成的META-INF/xxx文件

    packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
    }

 

ref:
Gradle: Error: more than one library with package name 'com.google.android.gms' - Stack Overflow
http://stackoverflow.com/questions/23494872/gradle-error-more-than-one-library-with-package-name-com-google-android-gms/37772331


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM