Automating synchronization when developping several libraries and projects at the same time

久未见 提交于 2019-11-29 17:22:15

With the library folder in the LIBS_DIR environment variable:

// settings.gradle
include ':app', ':lib1', ':lib2'
project(':lib1').projectDir = new File(System.getenv('LIBS_DIR'), 'lib1')
project(':lib2').projectDir = new File(System.getenv('LIBS_DIR'), 'lib2')

‏‏‎

// build.gradle
...
dependencies {
    compile project(path: ':lib1')
    compile project(path: ':lib2')
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!