比如这里我添加的recyclerview的依赖包,之前版本号写成了24.2.1,导致sync失败。最后改成个appcomcat一样的版本再sync就好啦。
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.0.0-beta1'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:0.5'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:2.2.2'
compile 'com.android.support:recyclerview-v7:26.0.0-beta1'
}

本文介绍了解决因RecyclerView依赖版本不匹配导致的构建失败问题。通过调整版本与AppCompat一致,成功解决了同步错误。
1360

被折叠的 条评论
为什么被折叠?



