Error:Failed to resolve: com.android.support:support-annotations:26.0.2

版权声明:欢迎大家观看。希望对大家有所帮助。如需转载,请注明出处。谢谢。博主QQ:337081267.欢迎拍砖! https://blog.csdn.net/pyfysf/article/details/77894331

异常信息记录:

 

 Error:Failed to resolve: com.android.support:support-annotations:26.0.2
<a href="install.m2.repo">Install Repository and sync project</a><br><a href="openFile:D:/AndroidStudioProjects/Qsb2/appild.gradle">Open File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a> 

 

 Error:Failed to resolve: com.android.support:support-annotations:26.0.2
<a href="install.m2.repo">Install Repository and sync project</a><br>

​
<a href="openFile:D:/AndroidStudioProjects/Qsb2/appild.gradle">Open File</a><br>

​
<a href="open.dependency.in.project.structure">Show in Project Structure dialog</a> 

​
​

 

 

 

 

 

解决方法:

在项目的build.gradle里面最上层填写这样一句话::::

 

configurations.all {
    resolutionStrategy.force 'com.android.support:support-annotations:23.1.0'
}

 

 

 

阅读更多

扫码向博主提问

pyfysf

非学,无以致疑;非问,无以广识
  • 擅长领域:
  • android
  • java
去开通我的Chat快问
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页