Couchbase-lite setup (Android / Android-Studio)

This will be a very straight forward setup of your Android application using Couchbase-lite
Simply open up your android-studio and follow those steps:

Step1

tut2

tut3

tut4

after doing so, you need to adjust your build.gradle (in case you still see an empty page in android studio, just press ALT-1) no you need to add this line to your gradle.build
dependencies {
// ...
compile 'com.couchbase.lite:couchbase-lite-android:1.2.0'
}

and you need to add some packagingOptions duo to a bug (avoids duplicates in your app)

packagingOptions {
exclude 'META-INF/ASL2.0'
exclude 'META-INF/LICENSE'
exclude 'META-INF/license.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/NOTICE'
}

Leave a Reply

Your email address will not be published. Required fields are marked *