美文网首页
2020-11-07 More than one file wa

2020-11-07 More than one file wa

作者: fjasmin | 来源:发表于2020-11-07 15:31 被阅读0次

andorid studio 的 project 正常运行的情况下 报More than one file was found with OS independent path 'project.clj'.

解决办法是 :
build.gradle(Moudule: app)android下加入

android{
    packagingOptions {
        exclude 'project.clj'
        exclude 'META-INF/INDEX.LIST'
    }
}

可以解决 我的代码为:

android {
    compileSdkVersion 26
    defaultConfig {
        applicationId "cn.com.mdj.robot"
        minSdkVersion 17
        targetSdkVersion 26
        versionCode 1
        versionName "1.10"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        externalNativeBuild {
            cmake {
                cppFlags ""
            }
        }

        ndk {
            abiFilters 'armeabi-v7a'
        }
    }

    signingConfigs {
        release {
            File strFile = new File("./platform.keystore")
            storeFile file(strFile)
            keyAlias 'platform'
            keyPassword 'android'
            storePassword 'android'
        }
        debug {
            File strFile = new File("./platform.keystore")
            storeFile file(strFile)
            keyAlias 'platform'
            keyPassword 'android'
            storePassword 'android'
        }
    }
    buildTypes {
        release {
            //minifyEnabled false
            //proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.release
        }
        debug {
            signingConfig signingConfigs.debug
        }

    }
    externalNativeBuild {
        cmake {
            path "CMakeLists.txt"
        }
    }
    packagingOptions {
        exclude 'project.clj'
        exclude 'META-INF/INDEX.LIST'
    }
}

相关文章

网友评论

      本文标题:2020-11-07 More than one file wa

      本文链接:https://www.haomeiwen.com/subject/onzfbktx.html