解决方法如下
1.在Project的build.gradle的两处加入google()
文章来源:https://www.toymoban.com/news/detail-514138.html
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
}
}
allprojects {
repositories {
google()
jcenter()
// maven {url 'https://dl.bintray.com/chaozhouzhang/maven' }
}
}
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
成功解决!文章来源地址https://www.toymoban.com/news/detail-514138.html
到了这里,关于Android报错之Could not resolve all files for configuration ‘:app:debugRuntimeClasspath‘.的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!