zoukankan      html  css  js  c++  java
  • More than one file was found with OS independent path 'META-INF/LICENSE' | Error:Could not read uildintermediates ypedefs.txt (系统找不到指定的文件。)

    FAQ1:

    Error:Could not read E: ewPlatformLibraryCommonLibraryuildintermediates ypedefs.txt: E: ewPlatformLibraryCommonLibraryuildintermediates ypedefs.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

  • 相关阅读:
    宠物的生长(多态)
    程序员和程序狗
    表彰优秀学生(多态)
    [leetcode] Anagrams
    [leetcode] Add Two Numbers
    [leetcode] Add Binary
    [leetcode] 4Sum
    [leetcode] 3Sum Closest
    [leetcode] 3Sum
    函数成员修饰之私有方式
  • 原文地址:https://www.cnblogs.com/bluestorm/p/6690121.html
Copyright © 2011-2022 走看看