I’ve followed the “getting started” page, but the gradle fails to sync.
Getting “Error:Failed to find: com.couchbase.lite:couchbase-lite-android:1.0.3”
Here’s my app gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "com.*********"
minSdkVersion 15
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
// CouchBase:
// workaround for "duplicate files during packaging of APK" issue
// see https://groups.google.com/d/msg/adt-dev/bl5Rc4Szpzg/wC8cylTWuIEJ
packagingOptions {
exclude 'META-INF/ASL2.0'
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
exclude 'META-INF/DEPENDENCIES' // Apache
}
}
repositories {
mavenCentral()
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots'
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
/* Lollipop Support */
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.android.support:recyclerview-v7:+'
compile 'com.couchbase.lite:couchbase-lite-android:1.0.3' // CouchBase
compile 'com.googlecode.libphonenumber:libphonenumber:6.1' // LibPhoneNumber
compile 'com.google.code.gson:gson:2.2.4' // Gson
compile 'com.squareup.picasso:picasso:2.4.0' // Picasso
compile project(':asmack-android-8-4.0.6') // aSmack
compile 'com.soundcloud.android:android-crop:0.9.10@aar' // Image Crop
/* OkHttp */
compile 'com.squareup.okhttp:okhttp:2.2.0'
compile project(':okhttp-urlconnection-2.0.0')
/* Apache */
compile 'org.apache.httpcomponents:httpmime:4.3.6'
compile 'org.apache.httpcomponents:httpcore:4.4'
}
And this is my top-level gradle:
buildscript {
repositories {
jcenter()
}
repositories {
mavenCentral()
maven {
url "http://files.couchbase.com/maven2/"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.0'
}
}
allprojects {
repositories {
jcenter()
}
}
Any idea?
Thanks,
Aviv