更新时间:2021-09-23 21:36:27
我自己回答问题:
将 maven { url 'https://maven.google.com' }
添加到:
allprojects {
repositories {
...
maven { url 'https://maven.google.com' }//this line is added
mavenCentral()
jcenter()
}
}
对我有用,因为我的 gradle 版本是 3.x
.我认为@shizhen 的答案也是正确的,但gradle 版本应该更改为4.x+
.
worked for me because my gradle version was 3.x
. I think the answer of @shizhen is also correct but the gradle version should be changed to 4.x+
.
找不到参数的方法implemetation()[com.android.support:appcompat-v7:28.0.0]
与项目“:app"中的依赖项"com.android.support:support-annotations"冲突.应用(26.1.0)和测试应用(27.1.1)的已解决版本不同.
Android dependency 'com.android.support:support-v4' has different version for the compile (26.1.0...
Gradle - 错误找不到参数的方法 implementation() [com.android.support:appcompat-v7:26.0.0]