使用操作系统独立路径'convertGermanToBoolean.properties'找到多个文件

时间:2020-01-24 23:25:17

标签: java android-studio gradle compiler-errors

构建应用程序时出现错误:使用操作系统独立路径“ convertGermanToBoolean.properties”发现了多个文件。

其他信息: 我安装了opencsv-5.0库并为其创建了一个libs文件夹。 任何对此错误的见解将不胜感激。

这是我的build.gradle文件

ext {
    var = 29
}
apply plugin: 'com.android.application'

android {
    compileSdkVersion var
    buildToolsVersion "29.0.2"
    defaultConfig {
        applicationId "sae.iit.saedashboard"
        minSdkVersion 17
        targetSdkVersion 29
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        compileOptions {
            sourceCompatibility JavaVersion.VERSION_1_8
            targetCompatibility JavaVersion.VERSION_1_8
        }

    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility = 1.8
        targetCompatibility = 1.8
    }
}
repositories {
    jcenter()
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'androidx.appcompat:appcompat:1.0.2'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'com.google.android.material:material:1.0.0'
    implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
    implementation 'com.github.Paroca72:sc-gauges:3.5.3'
    implementation 'pl.pawelkleczkowski.customgauge:CustomGauge:1.0.4'
    //implementation project(':library-release')
    implementation files('C:/Users/SSalu/AndroidStudioProjects/SAE Dashboard (Merged) 7/library/opencsv-5.0.jar')
    implementation files('libs/opencsv-5.0.jar')
    implementation fileTree(dir: 'libs', include: ['*.aar', '*.jar'], exclude: [])
}

1 个答案:

答案 0 :(得分:0)

您必须删除implementation files('libs/opencsv-5.0.jar')代码 因为您已经在那实现了:

implementation files('C:/Users/SSalu/AndroidStudioProjects/SAE Dashboard (Merged) 7/library/opencsv-5.0.jar')