我无法在我的项目中导入库jaydeepw / poly-picker(https://github.com/jaydeepw/poly-picker),错误为
“无法解决:com.github.jaydeepw:poly-picker:1.0.23”
这是我的build.gradle文件
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "26.0.2"
defaultConfig {
applicationId "com.example.sharaddadhich.multipleimages_camera"
minSdkVersion 17
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories{
maven { url "https://maven.google.com" }
maven { url 'https://repo.commonsware.com.s3.amazonaws.com' }
maven { url 'https://jitpack.io' }
maven { url "https://s3.amazonaws.com/repo.commonsware.com" }
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:26.+'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.github.jaydeepw:poly-picker:1.0.23'
testCompile 'junit:junit:4.12'
}
答案 0 :(得分:0)
似乎这个版本在jitpack.io上不可用(构建失败)。 This issue指的是同样的问题。
您仍然可以使用v1.0.22
:
compile 'com.github.jaydeepw:poly-picker:v1.0.22'
或克隆项目,构建它&在项目中包含生成的aar
文件