android - 如何解决“gradle failed resolve”?
问题描述
无法编译,也无法在我的库中看到。
错误
gradle failed resolve `com.theartofdev.edmodo:android-image-cropper:+” Compilation fails.
build.gradle
代码
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.example.backuppc.breathanalyzer"
minSdkVersion 23
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
依赖项
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:support-v4:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.android.support:recyclerview-v7:23.4.0'
compile 'com.android.support:cardview-v7:23.4.0'
compile 'com.theartofdev.edmodo:android-image-cropper:+'
}
解决方案
请更换
compile 'com.theartofdev.edmodo:android-image-cropper:+'
最新版本
compile 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
请确保依赖项是最新版本。您可以在这里获取最新版本: https ://bintray.com/package/files/arthurhub/maven/Android-Image-Cropper?order=asc&sort=name&basePath=com%2Ftheartofdev%2Fedmodo%2Fandroid-image-cropper&tab=files
希望这可以帮助..
推荐阅读
- javascript - 默认电子拖动项目未按预期工作
- keycloak - 如何在 void 方法中的 Keycloak 中显示信息页面?
- javascript - 当滚动到达它(JS)时,计数器脚本应该运行,我该怎么做?
- jasper-reports - JasperReports:带有链接的图像无法通过可访问性检查
- jestjs - 圈 ci 错误 [ERR_PACKAGE_PATH_NOT_EXPORTED] 上的开玩笑测试抛出错误:开玩笑:运行 globalSetup - /root/project/tests/setup.ts 时出错
- python - TypeError:“_asyncio.Future”对象不可下标,使用 mongodb 的异步电机驱动程序
- clickhouse - clickhouse v.21 是否支持 catboost
- google-cloud-platform - 从 GCS 加载 Pyspark 的过程,转换并保存到不同的 GCS 不工作
- cypress - 使用其他域的 cypress-run 测试失败
- .net-core - .NET 允许对文件夹进行“额外访问”