java找到了多个具有操作系统独立路径“convertGermanToBoolean”的文件。财产
当我构建我的应用程序时,我得到了一个错误:找到了多个具有操作系统独立路径“convertGermanToBoolean”的文件。属性'
其他信息: 我安装了opencsv-5.0库,并为它创建了一个libs文件夹。 如能了解此错误,将不胜感激
这是我的身材。梯度锉
ext {
var = 29
}
apply plugin: 'com.安卓.application'
安卓 {
compileSdkVersion var
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "sae.iit.saedashboard"
minSdkVersion 17
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "安卓x.test.runner.AndroidJUnitRunner"
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-安卓-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
}
repositories {
jcenter()
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation '安卓x.appcompat:appcompat:1.0.2'
implementation '安卓x.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.安卓.material:material:1.0.0'
implementation '安卓x.lifecycle:lifecycle-extensions:2.0.0'
testImplementation 'junit:junit:4.12'
安卓TestImplementation '安卓x.test:runner:1.1.1'
安卓TestImplementation '安卓x.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 楼答案
您必须删除
implementation files('libs/opencsv-5.0.jar')
代码 因为您已经在那里实现了: