gpt4 book ai didi

android - 如何修复Android Studio 1.4上的错误 “Failed to resolve:…”

转载 作者:行者123 更新时间:2023-12-03 05:39:30 24 4
gpt4 key购买 nike

我无法在Gradle中添加存储库。

我一直在寻找这个问题的答案,但失败了

应用中的Build.gradle文件:

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"

defaultConfig {
applicationId "com.mkurbanov.lebap_kwartira"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.android.support:design:23.0.1'
compile 'com.android.support:support-v4:23.0.1'
compile 'com.android.support:recyclerview-v7:23.0.1'
compile 'com.android.support:cardview-v7:23.0.1'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.daimajia.slider:library:1.1.5@aar'
compile 'com.balysv:material-ripple:1.0.2'
compile 'com.yqritc:recyclerview-flexibledivider:1.4.0'
compile 'com.daimajia.easing:library:2.0@aar'
compile 'com.daimajia.androidanimations:library:2.3@aar'
compile 'com.github.esafirm.android-image-picker:imagepicker:x.y.z'
// for experimental rx picker
compile 'com.github.esafirm.android-image-picker:rximagepicker:x.y.z'
}

项目中的Build.gradle文件:
// Top-level build file where you can add configuration options common to 
all sub-projects/modules.

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
jcenter()
maven { url 'https://maven.google.com' }
maven { url 'https://jitpack.io' }
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}

得到这样的错误:

Error:(36, 13) Failed to resolve: com.github.esafirm.android-image- picker:rximagepicker:x.y.z Show in File
Show in Project Structure dialog

Error:(34, 13) Failed to resolve: com.github.esafirm.android-image- picker:imagepicker:x.y.z Show in File
Show in Project Structure dialog



我需要添加此 repository
但它不起作用。

最佳答案

在Build.gradle中,将x.y.z替换为1.13.1

关于android - 如何修复Android Studio 1.4上的错误 “Failed to resolve:…”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54036485/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com