How can you build .jar for couchbase-lite-android?

74 views
Skip to first unread message

Traun Leyden

unread,
Mar 27, 2014, 2:59:54 PM3/27/14
to mobile-c...@googlegroups.com

From Bojan Polanec via email:

I managed to build via command line with gradlew build the java-core project but when I try to build the lite-android I'm stuck on this when i run gradlew build:
Project with path ':libraries:couchbase-lite-java-core' could not be found in root project 'couchbase-lite-android'

That sounds like the project is configured to depend directly on the source in sub-projects (as opposed to depending on maven artifacts for subprojects), but that the submodules have not been checked out.

Try running:

$ git submodule init && git submodule update 

in the same directory that you are running gradlew.  Does that fix it?
 
I tried to put entire project(core project) with build into couchbase-lite-android - libraries subfolder , tried with just jar from core project but always same error.
I assume .jar built by lite-android project is the one I'm looking for to replace original Beta2.jar

To extract the jars from the build, take a look at what is done in this script:

 
Reply all
Reply to author
Forward
0 new messages