gpt4 book ai didi

android - 错误 : Failed to resolve: com. afollestad :material-dialogs:2. 0.0

转载 作者:行者123 更新时间:2023-11-29 23:19:37 31 4
gpt4 key购买 nike

我使用的是 Android Studio 3.3,在我的项目中,当我将 com.afollestad.material-dialogs 添加到我的 Gradle 时,com.afollestad.material-dialogs:core:2.0.0 出现问题,显示错误:无法解析:com.afollestad.material-dialogs:core:2.0.0,

这是我的 Gradle: 项目

buildscript {
repositories {
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.1'

}
}

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

我的 Gradle :应用

apply plugin: 'com.android.application'

android {
compileSdkVersion 28

defaultConfig {
applicationId "com.pongodev.recipesapp"
minSdkVersion 20
targetSdkVersion 28
versionCode 5
versionName "3.0.3"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

// Main libraries, you always need this libraries in your project. do not remove them.
implementation'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.google.android.gms:play-services:12.0.1'

// Important library to create material design. do not remove this.
implementation project(':materialDesign')

// Library to create tabbar
implementation 'com.jpardogo.materialtabstrip:library:1.0.6'

// Library to create ripple effect. work together with materialDesign library.
implementation 'com.github.traex.rippleeffect:library:1.3'

// Library to create rounded, circle, and any shape image.
implementation 'com.makeramen:roundedimageview:1.4.0'

// Library load lazy images.
implementation 'com.squareup.picasso:picasso:2.71828'

// Library to create simple list.
implementation 'com.android.support:recyclerview-v7:28.0.0'

// Library to create complex clickable list.
implementation 'com.android.support:cardview-v7:28.0.0'

// Library to create material dialog.
implementation 'com.afollestad:material-dialogs:2.0.0'

// Library to create animation imageview.
implementation 'com.flaviofaria:kenburnsview:1.0.5'

}

我的 Gradle:materialDesign

apply plugin: 'com.android.library'

android {
compileSdkVersion 28

defaultConfig {
minSdkVersion 20
targetSdkVersion 28
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}

dependencies {
implementation 'com.android.support:support-v4:28.0.0'
implementation files('libs/nineoldandroids-2.4.0.jar')
}

最佳答案

implementation 'com.afollestad.material-dialogs:2.0.0' 更改为 implementation 'com.afollestad.material-dialogs:core:2.0.0'
在您的应用模块的 gradle 文件中。

编辑:

确保您已经在项目级 build.gralde 文件中包含 maven { url 'https://jitpack.io' } 这一行。如果不存在,则添加此行,如

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

}
}

关于android - 错误 : Failed to resolve: com. afollestad :material-dialogs:2. 0.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54604585/

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