Android studio add external project to build.gradle -
i have sample project, following setup:
/root + pure java lib + android test lib + android test project
where 'test project' dependent on 'test lib', , last depends on 'pure java lib' compiling project , launching setup works fine.
i'm thinking importing previous eclipse workspace , work android studio, problem project setup different, , keep way.
for example if use previous example:
/root + android test lib + android test project /some other folder (another repository example) + pure java lib
i've tried many configurations, didn't find way reference project outside scope of parent folder ('root' in example case).
in many platforms/modules can use '..' move in folders didn't work me, perhaps i've used wrong.
does know how can achieved gradle?
update
i'll try more generic:
/c:/ /project + module 1 - pure java + module 2 - android test lib + module 3 - android test project /project b + module 1 - pure java + module 2 - pure java + module 3 - pure java
i use module 1 of project b, in project a.
assuming other folder gradle project add following settings.gradle file:
include ':module1' project(':module1').projectdir = new file(settingsdir, '../project b/module 1')
Comments
Post a Comment