码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2019-07-09 00:24:35      阅读:173      评论:0      收藏:0      [点我收藏+]

标签:pre   strategy   hand   handle   line   class   wrapper   ati   blog   

异常信息记录:

 

 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‘
}

  

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

标签:pre   strategy   hand   handle   line   class   wrapper   ati   blog   

原文地址:https://www.cnblogs.com/upuptop/p/11154584.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!