JoCuTo
JoCuTo

Reputation: 2483

Can not import CouchBase Lite as a module

I need to import Couchbase Lite in one of my proyects. I dont want to use Gradle . So basically what I am doing is :

  1. I have donwloaded the proyect from github
  2. I have imported it like a new module (File->New->Impor module->path)

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.

enter image description here

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

Answers (1)

Murilo Perrone
Murilo Perrone

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

Related Questions