比如这里我添加的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' }