Error on adding couchbaseL lite


#1

I got error when i am trying to add couchbase lite in build.gradle.

Build.gradle(Module)
apply plugin: ‘com.android.application’

android {
compileSdkVersion 24
buildToolsVersion “24.0.2”

defaultConfig {
    applicationId "com.example.invjejurka.myapplication"
    minSdkVersion 15
    targetSdkVersion 24
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

// 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’
}
}

dependencies {
compile fileTree(dir: ‘libs’, include: [’*.jar’])
testCompile 'junit:junit:4.12’
compile 'com.android.support:appcompat-v7:24.2.0’
compile ‘com.couchbase.lite:couchbase-lite-android:1.3’

}

build.gradle(My Application)

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
jcenter()

}
dependencies {
    classpath 'com.android.tools.build:gradle:2.1.3'

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

}

allprojects {
repositories {
jcenter()
maven {
url “http://files.couchbase.com/maven2/
}
}
}


#2

You need to specify the full version: 1.3.0, instead of 1.3.


#3

hod.greeley: just tried with 1.3.0 .now get different error like

E:\AndroidStudioWorkspace\MyApplication\app\build.gradle
Error:Error:Failed to resolve: com.github.oxo42:stateless4j:2.4.0
Open File
Show in Project Structure dialog
Error:Error:Failed to resolve: com.fasterxml.jackson.core:jackson-databind:2.5.0
Open File
Show in Project Structure dialog
Error:Error:Failed to resolve: com.squareup.okhttp3:okhttp:3.3.1
Open File
Show in Project Structure dialog
Error:Error:Failed to resolve: com.fasterxml.jackson.core:jackson-annotations:2.5.0
Open File
Show in Project Structure dialog
Error:Error:Failed to resolve: com.fasterxml.jackson.core:jackson-core:2.5.0
Open File
Show in Project Structure dialog