• android异常 More than one file was found with OS independent path 'META-INF/XXX'


    android 异常总结:一个文件在jar包中出现多次。


    Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.

    > More than one file was found with OS independent path 'META-INFXXX'


    需要在app.gradle文件里面android节点下添加这样的代码

       packagingOptions {
            exclude 'META-INF/XXX'
      	exclude 'META-INF/XXX'
      	exclude 'META-INF/XXX'
      	exclude 'META-INF/XXX'
        }
    



    具体的修改位置

    apply plugin: '
    
    android {
        compileSdkVersion 26
        defaultConfig {
            applicationId ""
            minSdkVersion 15
            targetSdkVersion 26
            versionCode 1
            versionName "1.0"
            testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        }
    
        packagingOptions {
            exclude 'META-INF/XXXX'
        }
    
    
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
    }
    







  • 相关阅读:
    linux-log-files/
    SSL SSH
    C++学习的书籍
    Linux IO 分析
    LINUX 常用操作
    Find Large Files in Linux
    Linux 常见操作
    Linux Performance tool
    /linux-command-line-bash-shortcut-keys/
    Sed
  • 原文地址:https://www.cnblogs.com/shaofeer/p/11154404.html
Copyright © 2020-2023  润新知