1、将嵌套aar包合并:
https://www.jianshu.com/p/8f9cf6271c20(暂未亲测)
2、重命名aar包
https://blog.csdn.net/xiayiye5/article/details/81629546
在android下,加入android.libraryVariants.all,如下实例
android{
android.libraryVariants.all { variant ->
variant.outputs.all {
if (variant.buildType.name == 'debug'){
outputFileName = "iotProvision_v${defaultConfig.versionName}-debug.aar"
}else{
outputFileName = "iotProvision_v${defaultConfig.versionName}-release.aar"
}
}
}
}
3、gradle原理分析
https://blog.csdn.net/itchosen/article/details/86572570
4、貌似这个必需,去掉会显示红色
android:supportsRtl="true">