Failed to resolve: com.github
来源:互联网 发布:阿里云主页 编辑:程序博客网 时间:2024/05/17 22:28
运行别人的Demo后报错:
Failed to resolve: com.github.yangjie10930:EpMedia:v0.8.2
解决办法:
1 在Project的build.gradle中加入
allprojects { repositories { jcenter() maven { url "https://jitpack.io" } }}
完整版
buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.3.3' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }}allprojects { repositories { jcenter() maven { url "https://jitpack.io" } }}task clean(type: Delete) { delete rootProject.buildDir}
2 在module中加入
compile ('com.github.yangjie10930:EpMedia:v0.8.2'){ transitive = true }
完整版
apply plugin: 'com.android.application'android { compileSdkVersion 25 buildToolsVersion "25.0.0" defaultConfig { applicationId "com.joe.epmediademo" minSdkVersion 18 targetSdkVersion 25 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } }}dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:25.1.0' compile 'com.android.support:support-v4:25.1.0' compile 'com.android.support.constraint:constraint-layout:1.0.2' compile ('com.github.yangjie10930:EpMedia:v0.8.2'){ transitive = true } testCompile 'junit:junit:4.12'}
阅读全文
0 0
- failed to resolve:com.github.********
- Failed to resolve: com.github
- 依赖包后出现Failed to resolve: com.github.Aspsine:SwipeToLoadLayout:1.0.3错误
- 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
- failed to resolve:com.android.support:appcompat
- Failed to resolve:com.android.support:xxxx
- Failed to resolve: com.android.support:appcompat-v7 Failed to resolve: com.android.support:recycler
- 兔子-Error:(31, 13) Failed to resolve: com.github.chrisbanes:PhotoView:1.2.6 Show in File Show i
- Error:(38, 13) Failed to resolve: com.github.PhilJay:MPAndroidChart:v3.0.1 <a href="openFile:/Users/
- 解决 Failed connect to github.com:8087
- Failed connect to github.com:xxxx 解决办法
- Failed to resolve: com.android.support:support-v4:19
- failed to resolve com.android.support:appcompat-v7:23+ 解决方法
- Failed to resolve: com.afollestad:material-dialogs:xxxxxxxxxx
- Failed to resolve: com.android.support:support-v4:23.1.1
- Android自定义捕获Application全局异常
- 弹性盒子模型属性之flex-shrink
- ESP8266WIFI解决方案可以实现WIFI高速传输和更多复杂功能,实测速度超过M字节每秒
- 链表(二)
- 在Windows新建一个cocos-2d的项目遇到的问题
- Failed to resolve: com.github
- 图像处理之特征值和特征向量的意义
- delphi 注册表操作(读取、添加、删除、修改)完全手册
- 关于Git使用的一些常见的问题
- 架构的典型组成部分:
- codeforces877B(div2)Nikita and string 暴力枚举+前缀和
- MAVEN
- Servlet详解(一)
- 2017-10-01-种树赢积分活动