AndroidStudio导出不含Build.Config的aar

在app/build.gradle中加入如下:

android {
    ...
    packageBuildConfig(false)
    ...
}

或者

android{
    ...
    buildFeatures {
        buildConfig = false
    }
    ...
}

再执行:
Build->Make Module (Your module);
Gradle->(Your module)->other->assembleDebug/assembleRelease

posted @ 2021-03-31 09:23  JohnRey  阅读(708)  评论(0)    收藏  举报