Найдено несколько файлов с независимым от ОС путем «convertGermanToBoolean.properties» - PullRequest
0 голосов
/ 25 января 2020

При сборке приложения появляется сообщение об ошибке: найдено несколько файлов с независимым от ОС путем «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 голосов
/ 01 февраля 2020

Вы должны удалить implementation files('libs/opencsv-5.0.jar') код, потому что вы уже внедрили его:

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