Reputation: 2483
I need to import Couchbase Lite
in one of my proyects. I dont want to use Gradle
. So basically what I am doing is :
After compilate the proyect I am facing an error,
Cannot resolve symbol AndroidContext
so I need the class
AndroidContext
That class is here so I am trying to import it like the previuse one, like a module, but I am facing this error.
What I am doing wrong? What I should do for import CouchBase lite to android not using
compile 'com.couchbase.lite:couchbase-lite-android:1.4.0'
Upvotes: 2
Views: 341
Reputation: 504
There are a number of other dependencies that you might need:
implementation 'com.couchbase.lite:couchbase-lite-android:1.4.4'
// To access the database through HTTP (often used for hybrid development and peer-to-peer sync).
implementation 'com.couchbase.lite:couchbase-lite-java-listener:1.4.4'
// To use ForestDB as the storage type.
compile 'com.couchbase.lite:couchbase-lite-android-forestdb:1.4.4'
// To enable encryption on SQLite databases.
compile 'com.couchbase.lite:couchbase-lite-android-sqlcipher:1.4.4'
// JavaScript view (map/reduce) engine for the REST API.
compile 'com.couchbase.lite:couchbase-lite-java-javascript:1.4.4'
Full documentation of gradle includes is here.
Upvotes: 1