How to create a release signed apk file using Gradle?

前端 未结 30 1448
既然无缘
既然无缘 2020-11-22 13:48

I would like to have my Gradle build to create a release signed apk file using Gradle.

I\'m not sure if the code is correct or if I\'m missing a parameter when doing

30条回答
  •  长发绾君心
    2020-11-22 14:20

    It is 2019 and I need to sign APK with V1 (jar signature) or V2 (full APK signature). I googled "generate signed apk gradle" and it brought me here. So I am adding my original solution here.

    signingConfigs {
        release {
            ...
            v1SigningEnabled true
            v2SigningEnabled true
        }
    }
    

    My original question: How to use V1 (Jar signature) or V2 (Full APK signature) from build.gradle file

提交回复
热议问题