Android error: package com.couchbase.lite.javascript does not exist

I have been trying to compile this project from github but when I build the project I get the error:
package com.couchbase.lite.javascript does not exist

Below is my gradle.build file:
apply plugin: ‘com.android.application’

    android {

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

compileSdkVersion 25
buildToolsVersion "25.0.3"
defaultConfig {
    applicationId "com.example.user.quizz"
    minSdkVersion 15
    targetSdkVersion 25
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:cardview-v7:21.+'
compile 'com.android.support:recyclerview-v7:21.+'
compile 'com.couchbase.lite:couchbase-lite-android:1.+'
testCompile 'junit:junit:4.12'
}

you should add

    compile 'com.couchbase.lite:couchbase-lite-java-javascript:1.2.1'

.

Also, for reference, take a look at this GitHub repo: https://github.com/couchbase/couchbase-lite-java-javascript

1 Like