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

  • 相关阅读:
    String常用方法
    测试
    mongo aggregate group, group使用
    jquery ajax封装添加默认错误提示
    js时间格式化
    本地项目导入远程git仓库
    java设计模式:适配器模式
    mysql if示例
    hibernate指定查询字段
    js window resize延时
  • 原文地址:https://www.cnblogs.com/bluestorm/p/6690121.html
Copyright © 2011-2022 走看看