【发布时间】:2016-08-28 00:58:25
【问题描述】:
我安装了新版本的 Android Studio“2.1.0.9”。现在当同步 gradle 错误信息出现在这个:
gradle failed resolve com.theartofdev.edmodo:android-image-cropper:+
我使用了任何版本的图像裁剪器,但仍然有这条消息。 毕业:
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
mavenCentral()
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:support-v4:23.1.1'
compile 'com.google.android.gms:play-services:8.4.0'
compile 'com.github.dmytrodanylyk.circular-progress-button:library:1.1.3'
compile 'com.theartofdev.edmodo:android-image-cropper:2.0.+'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.squareup.okhttp:okhttp-urlconnection:2.5.0'
}
android {
compileSdkVersion 'Google Apis:Google Apis:23'
buildToolsVersion '23.0.2'
useLibrary 'org.apache.http.legacy'
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
defaultConfig {
minSdkVersion 14
targetSdkVersion 23
}
【问题讨论】:
-
调用
compile 'com.theartofdev.edmodo:android-image-cropper:2.0.+'然后Clean and rebuild你的项目 -
@IntelliJAmiya 建议会起作用。
-
@jaydroider 让我们看看会发生什么
-
@IntelliJAmiya 这个错误仍然是:要求:MyProject:unspecified > 无法解析 com.theartofdev.edmodo:android-image-cropper:2.0.+。 > 无法列出 com.theartofdev.edmodo:android-image-cropper 的版本。 > 无法获取“jcenter.bintray.com/com/theartofdev/edmodo/…”。 > 与jcenter.bintray.com 的连接被拒绝 > 无法解析 com.theartofdev.edmodo:android-image-cropper:2.0.+。 > 无法列出 com.theartofdev.edmodo:android-image-cropper 的版本。
-
好的@Tom 展示你的
BUILD.GRADLE
标签: android android-studio gradle build.gradle