依赖包后出现Failed to resolve: com.github.Aspsine:SwipeToLoadLayout:1.0.3错误
来源:互联网 发布:希尔伯特 知乎 编辑:程序博客网 时间:2024/06/07 18:20
解决方法为:
在项目的build.gradle中添加:
allprojects { repositories { maven { url "https://jitpack.io" }//这就是添加的 }}
然后在Module:app的build.gradle中添加:dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:24.2.1' compile('com.github.Aspsine:SwipeToLoadLayout:1.0.3@aar') { transitive = true }}为什么要这样改呢?因为加入了一些外部资源,所以重新构建了一遍。实际上,
仅仅需要MD的Dialog样式在styles.xml里面自定义好就行了,只是为了方便写成一个库。
当然也可以这直接:compile 'com.github.Aspsine:SwipeToLoadLayout:1.0.3'
0 0
- 依赖包后出现Failed to resolve: com.github.Aspsine:SwipeToLoadLayout:1.0.3错误
- failed to resolve:com.github.********
- Failed to resolve: com.github
- [Android]依赖了包含aar包的库后出现Failed to resolve库aar包问题的解决办法
- Android Studio 中出现错误Failed to resolve: com.android.support.constraint:constraint-layout:1.0.2
- 依赖了aar库的module被导入工程时出现failed to resolve的错误
- 依赖了aar库的module被导入工程时出现failed to resolve的错误
- 安卓导入依赖包失败 Failed to resolve: ×××
- git 出现错误 Could not resolve host: github.com
- 引入jar包编译,failed to resolve的错误
- Git错误fatal: unable to access 'https://github.com/****.git/': Couldn't resolve host 'github.com'
- Failed to resolve :SMSSDK-2.1.3 MOB短信验证出现错误
- Android studio Github 开源项目依赖添加失败解决方法 Failed to resolve
- Android Glide Error:Failed to resolve: com.github.bumptech.glide:glide:+ 问题解决
- 如何解决failed to resolve:com.github.bumptech.glide:glide:3.7.0
- Error:(30, 13) Failed to resolve: com.github.bumptech.glide:glide:3.7.0
- Error:(52, 13) Failed to resolve: com.github.franmontiel:PersistentCookieJar:v1.0.1
- Github 错误合集:Failed connect to github.com:8080 || Failed connect to github.com:443; No error
- 虚幻4属性系统(反射)翻译
- 【Java常用类库】_大数操作(BigIntger、BigDecimal)
- 洛谷 P2038 无线网络发射器选址
- 欢迎使用CSDN-markdown编辑器
- 计算机视觉
- 依赖包后出现Failed to resolve: com.github.Aspsine:SwipeToLoadLayout:1.0.3错误
- swift中UITableView的使用(编辑模式)
- 使用python实现的DI原型
- spark性能调优二--JVM调优
- Timer and TimerTask
- 《Oracle相关文章索引(1)》
- TIM_OCPolarity pwm
- 洛谷 P2296 寻找道路
- 法律裁判文书的统计结果