【发布时间】:2014-08-26 12:42:05
【问题描述】:
所以我正在开发 AndroidStudio 0.8.1 beta 中的项目,我想利用我在 github (https://github.com/derekbrameyer/android-betterpickers) 上找到的库。我像在 README.md 中所说的那样添加依赖项,但是当我尝试将项目与 gradle 文件同步时,它说:
找不到:com.doomonafireball.betterpickers:library:1.5.2
这是我的 build.gradle 文件:
apply plugin: 'com.android.application'
buildscript {
repositories {
maven { url 'http://repo1.maven.org/maven2' }
}
}
repositories {
mavenCentral()
}
android {
compileSdkVersion 19
buildToolsVersion '19.1.0'
defaultConfig {
applicationId 'gtsarandum.syncc'
minSdkVersion 14
targetSdkVersion 19
versionCode 1
versionName '1.0'
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:support-v4:19.+'
compile project(':extendedCalendarView')
compile project(':src')
compile 'com.github.gabrielemariotti.cards:library:1.7.3'
compile 'com.github.gabrielemariotti.cards:library-extra:1.7.3'
compile 'com.doomonafireball.betterpickers:library:1.5.2'
}
上次我遇到gabriellemariotti.cards:libraryd:1.7.3 的这个问题时,我在构建脚本中添加了maven { url 'http://repo1.maven.org/maven2' },如上所示。
我还有什么要补充的吗?如果没有,我该如何解决这个问题?
非常感谢!
【问题讨论】:
标签: android maven android-studio android-library build.gradle