简体   繁体   中英

How can I create Android module library inside Android module library

I try to create module which is controller for XXX sdk module. So I create new module library (controller) and want to add sub module XXX sdk module. Can you give some advises how to do this?

Use 2 library modules. Something like:

root
|--libA
|----build.gradle
|--libB
|----build.gradle
|--build.gradle
|--settings.gradle

In settings.gradle :

include ':libA' , ':libB'

In libA/build.gradle :

apply plugin: 'com.android.library'

//

In libB/build.gradle :

apply plugin: 'com.android.library'

dependencies {
    compile project(':libA')
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM