Android Execution failed for task ‘:app:checkDebugDuplicateClasses‘ 异常解决方案
·
问题定义
为Android jar包冲突
build.gradle配置文件导入jar包有两种写法
问题解决:
将 compile project(path: ':xxxxxx') 改为 compile fileTree(include: ['*.jar'], dir: 'libs')
试试是否还报异常 我是这样成功解决的
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs') //修正后写法
// compile project(path: ':xxxxxx') //报错写法
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.3.2'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.2.1'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'androidx.navigation:navigation-fragment-ktx:2.3.1'
implementation 'androidx.navigation:navigation-ui-ktx:2.3.1'
}
更多内容推荐:https://blog.csdn.net/qq_39731011/category_7565212.html?fromshare=blogcolumn&sharetype=blogcolumn&sharerId=7565212&sharerefer=PC&sharesource=qq_39731011&sharefrom=from_link
https://blog.csdn.net/qq_39731011/category_7565212.html?fromshare=blogcolumn&sharetype=blogcolumn&sharerId=7565212&sharerefer=PC&sharesource=qq_39731011&sharefrom=from_link
更多推荐
所有评论(0)