Execution failed for task ':brsdk_core:mergeDebugJavaResource'. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > More than one file was found with OS independent path 'classes.jar'
时间: 2024-02-13 20:00:39 浏览: 98
Android studio4.1更新后出现的问题详解
5星 · 资源好评率100%
这个错误通常是由于 Android 项目中存在重复的依赖库导致的。可以尝试以下几种解决方法:
1. 在 build.gradle 文件中排除重复的依赖库,例如:
```
android {
configurations {
all*.exclude group: 'com.android.support', module: 'support-v4'
}
}
```
2. 移除重复的依赖库,例如:
```
dependencies {
implementation ('com.example.library1') {
exclude group: 'com.example.library2'
}
implementation 'com.example.library2'
}
```
3. 清除项目缓存并重新构建,例如:
```
./gradlew clean
./gradlew build
```
希望这些方法能够帮助你解决问题。
阅读全文