Create an AAR with multiple AARs/JARs

后端 未结 3 1366
闹比i
闹比i 2020-12-01 21:47

I have seen questions (Android Studio combine 2 .aar into one and others) posted by various developers but I haven\'t seen a definitive response that enables me to create an

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-01 22:36

    This should fix your issue:

    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
        testCompile 'junit:junit:4.12'
        compile 'com.android.support:appcompat-v7:23.1.1'
        compile 'com.android.support:design:23.1.1'
        compile files('libs/eventbus.jar')
        compile project(':sdk3-debug') { transitive = true }
    }
    

    Include the transitive flag at true.

提交回复
热议问题