Error:Failed to resolve: com.afollestad:material-dialogs:

http://www.chenruixuan.com/archives/1068.html

背景:

同事把Android项目直接考给了我。。。我在Android Studio上运行,然后提示:

Error:Failed to resolve: com.afollestad:material-dialogs:0.7.6.0

一直以为是本地依赖没有加载。。使用最新的material-dialogs版本0.8.4.2也不行。

N多坑后,发现,其实Gradle Build时会自动从https://jcenter.bintray.com/com/afollestad/material-dialogs/ 下载最新的material-dialogs,当然,是它认为最新的版本。

其实解决方式很简单。访问:https://jcenter.bintray.com/com/afollestad/material-dialogs/

里面会列出了现有的material-dialogs版本,选择你要使用的,把版本号修改到对应的bulid.gradle文件中。。重新build就可以了。。。。。

时间: 2024-10-08 23:06:44

Error:Failed to resolve: com.afollestad:material-dialogs:的相关文章

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

异常信息记录: 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">

(转)Android Studio Error:Failed to resolve: com.android.support:appcompat-v7:25.1.0解决方案

今天不知道为什么导入eclipse项目后就出现了错误,没导入之前是正常使用AS的 Error:(26, 13) Failed to resolve: com.android.support:appcompat-v7:25.+ 第一.点击Install Repository . 但是Installing Android Support Repository失败了 当然还是可以在SDK那里进行相应版本的安装API 第二.点击Show in Project Structure dialog 更改自己C

Error:Failed to resolve: com.android.support:appcompat-v7

repositories { maven { url "https://maven.google.com" } } 原文地址:https://www.cnblogs.com/cuthead/p/appcompat.html

Failed to resolve: com.android.support:appcompat-v7:27.0.1问题解决

今天,在毫无征兆的情况下AndroidStudio又抽风了,搞了大半天,试了网上众多方案,终于解决了这个问题.咱们一步一步来 第一步:这是最开始的bug Error:Failed to resolve: com.android.support:support-annotations:27.0.1 Install Repository and sync projectOpen FileShow in Project Structure dialog Error:Failed to resolve:

AndroidStudio创建TV-APP,出现Error:(28, 13) Failed to resolve: com.squareup.picasso:picasso:2.5.0 的解决

前两天在尝试编写TV-APP时,使用AndroidStudio创建一个TV应用后,Gradle编译出现了: Error:(28, 13) Failed to resolve: com.squareup.picasso:picasso:2.5.0  错误. 百度发现picasso包是square团队的一个开源的Android图像增强工具,github地址:https://github.com/square/picasso. 进入正题: 1.点击Messages框中,出现错误信息处的---show

Error:(24, 13) Failed to resolve: com.android.support:recyclerview-v7:20.+ &lt;a href=&quot;install.m2.repo&quot;

Android studio   报错    Error:(24, 13) Failed to resolve: com.android.support:recyclerview-v7:20.+ <a href="install.m2.repo">Install Repository and sync project</a><br><a href="openFile">Show in File</a><

Error:(27, 13) Failed to resolve: com.android.support.constraint:constraint-layout:1.0.2约束布局constraint-layout导入失败的解决方案

运行demo提示错误: Error:(27, 13) Failed to resolve: com.android.support.constraint:constraint-layout:1.0.2是你的androidStudio 要安装插件才可以运行这个包. 详细步骤说: a. 点击Tools>android>SDK Manager b. 点击SDK Tools标签 c.选择show pack details,找到support repository->constraintlayou

angular2 ng build --prod 报错:Module not found: Error: Can&#39;t resolve &#39;./$$_gendir/app/app.module.ngfactory&#39;

调试页面 ng serve 正常 ng build 也正常 ng build --prod 异常:Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' 开始以为是以前那样,引用错了路径或少引用了东西. 搜了好多资料,发现是 angular-cli 的版本有点低了(因为用了最新的material) 找到原因了,问题就很容易解决了 第一步: rm -rf node_modules/ 第二部: npm

Failed to resolve com.android.support:support-compat:25.4.0

3down votefavorite I am trying to include this library to my project by adding compile 'jp.wasabeef:recyclerview-animators:2.2.7' to the dependencies. When the graddle sync happens an error produced like below Failed to resolve com.android.support:su