Android Studio Gradle Sync Unable to find the library

So I am working on a project in AndroidStudio 0.8.1 beta and I want to use the library I found on github (https://github.com/derekbrameyer/android-betterpickers). I added the dependency in README.md, but when I tried to sync the project with the gradle file, it said:

Failed to find: com .doomonafireball.betterpickers:library:1.5.2

This is my build.gradle file:

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-a ndroid.txt'),'proguard-rules.pro'
}
}
productFlavors {
}
}

dependencies {< br /> 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'
}

Last time I met gabriellemariotti.cards: libraryd: 1.7 .3 For this question, I added maven {url’http://repo1.maven.org/maven2′}.

Is there anything else I need to add? If not, how can I solve this problem?

Thanks in advance!

Try to use the include statement to change’gradle.settings’, the path/lib cannot be found.

So I’m working on a project in AndroidStudio 0.8.1 beta, and I want to use the library I found on github (https://github.com/derekbrameyer/android-betterpickers). I’m in Add dependencies in README.md, but when I try to synchronize the project with the gradle file, it says:

Failed to find: com.doomonafireball .betterpickers:library:1.5.2

This is my build.gradle file:

apply plugin:'com.android. application'
buildscript {
repositories {
maven {url'http://repo1.maven.org/maven2' }
}
}
< br />repositories {
mavenCentral()
}

android {
compileSdkVersion 19
buildToolsVersion '19.1.0'
defaultConfig {< br /> 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'
}

Last time I encountered the problem of gabriellemariotti.cards: libraryd: 1.7.3 I added maven {url’http://repo1.maven.org/maven2′}.

I Is there anything else I need to add? If not, how can I solve this problem?

Thanks in advance!

Try to use the include statement to change ‘gradle.settings’, the path/lib cannot be found.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 3552 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.