Direct code dependency build problems, Android

63 views
Skip to first unread message

Ron Williams

unread,
Feb 25, 2014, 2:01:48 PM2/25/14
to mobile-c...@googlegroups.com
I'm trying to use couchbase-lite-android-ektorp in a project and when attempting to build I keep getting 

Project with path ':couchbase-lite-android-ektorp:libraries:couchbase-lite-java-core' could not be found in project ':libraries:couchbase-lite-android-ektorp'

I've init the submodules for couchbase-lite-android-ektorp so the projects are physically there. Am I missing something?

Thanks,
Ron

Traun Leyden

unread,
Feb 25, 2014, 2:16:18 PM2/25/14
to mobile-c...@googlegroups.com
It's working for me locally (commit f7bfd647 - running ./gradlew build)

Can you compare your directory stucture?

tree command up to 4 levels deep: https://gist.github.com/tleyden/9215548

tree command to max depth: https://gist.github.com/tleyden/9215525

After a fresh git clone you should run "git submodule init && git submodule update"

Which commit are you on?



--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/4a23b492-c63e-4e61-8e6c-4ad7874206e4%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Ron Williams

unread,
Feb 25, 2014, 2:42:05 PM2/25/14
to mobile-c...@googlegroups.com
The project itself builds fine. It's when attempting to include it as a submodule to my project that I run into issues.

Traun Leyden

unread,
Feb 25, 2014, 3:01:44 PM2/25/14
to mobile-c...@googlegroups.com
Oh, I think I know what's going on .. you need to "flatten" the submodules.  

It looks like you are trying to include couchbase-lite-java-core as a "submodule of a submodule", but that doesn't work.  I actually ran into the same thing and started a thread about it on the ADT-dev list.

I think your settings.gradle should look like this.

include ':yourproject',
':libraries:couchbase-lite-android-ektorp',
':libraries:couchbase-lite-java-core',
':libraries:couchbase-lite-android',

and you would need to have the couchbase-lite-android-ektorp, couchbase-lite-java-core, and couchbase-lite-android projects in the libraries subdirectory.





Ron Williams

unread,
Feb 25, 2014, 3:57:22 PM2/25/14
to mobile-c...@googlegroups.com
Thanks Traun. That got me on the right track.
Reply all
Reply to author
Forward
0 new messages