Android Studio3.5签字

创建签字

Build→Generate Signed Build / APK


QQ截图20190930102112.png

QQ截图20190930102132.png

Gradle文件配置

signingConfigs {
        config {
            storeFile file(签字地址)
            storePassword '123'
            keyAlias = 'key0'
            keyPassword '123'
        }
    }
buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.config
        }
        debug {
            signingConfig signingConfigs.config
        }
    }

IDE右侧Gradle→项目名→Tasks→build→双击assemble,生成release签字包

你可能感兴趣的:(Android Studio3.5签字)