gpt4 book ai didi

android - 错误 :Failed to find: com. nineoldandroids :library:2. 4.0

转载 作者:太空宇宙 更新时间:2023-11-03 11:56:41 25 4
gpt4 key购买 nike

我要迁移到 android studio。

我想使用这个库:

https://codeload.github.com/flavienlaurent/datetimepicker/zip/master

本教程之后:

https://www.youtube.com/watch?v=1MyBO9z7ojk

现在我得到这个错误:

Error:Failed to find: com.nineoldandroids:library:2.4.0


datetimepicker-library 中的 build.gradle :

apply plugin: 'com.android.library'

repositories {
mavenCentral()
}

dependencies {
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.android.support:support-v4:20.0.0'
}

android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

defaultConfig {
minSdkVersion 11
targetSdkVersion 19
versionName rootProject.versionName
versionCode rootProject.versionCode
}

sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
}
}

//apply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle'

已更新

enter image description here

我所有的错误:

最佳答案

更新这个

    dependencies {
compile 'com.nineoldandroids:library:2.4.0+'
}

然后Gradle你的项目

关于android - 错误 :Failed to find: com. nineoldandroids :library:2. 4.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29200365/

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