简体   繁体   中英

Compile gradle project dependency into android library arr

I'm using android studio with gradle to build android library.

I'm adding a project dependency to the library, but I want the build task to include all the project classes in the arr output.

Currently, all the project classes are not included in the arr (just like with other external dependencies)

This is the gradle file i'm using:

    android {
    compileSdkVersion 19
    buildToolsVersion '19.1.0'
    defaultConfig {
        minSdkVersion 19
        targetSdkVersion 19
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

}



dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'io.reactivex:rxjava:1.0.12'
    compile project(':audit')
}

Thanks.

Use the transitive flag to include the dependencies.

compile ('com.somepackage:LIBRARY_NAME:1.0.0@aar'){
    transitive=true
}

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