我有一个依赖于许多开源库的库模块。 build.gradle的依赖项看起来像:
dependencies {
api 'com.android.support:support-v4:26.1.0'
api 'com.android.support:appcompat-v7:26.1.0'
api 'commons-io:commons-io:2.5'
api 'com.google.dagger:dagger-android:2.11'
api 'com.google.dagger:dagger-android-support:2.11'
annotationProcessor 'com.google.dagger:dagger-android-processor:2.11'
annotationProcessor 'com.google.dagger:dagger-compiler:2.11'
annotationProcessor 'com.github.gfx.android.orma:orma-processor:4.2.5'
api 'com.github.gfx.android.orma:orma:4.2.5'
api 'com.google.code.gson:gson:2.8.0'
api 'commons-lang:commons-lang:2.4'
api 'com.google.android.exoplayer:exoplayer:2.7.3'
}
当我将其包含在具有multidexenabled的主项目中时。这些库似乎没有包含在最终的APK中。我将此项目作为aar文件包含在主项目中。
如何从库本身将这些依赖项包含到主项目中?