itgoyo / AndroidSummary

12 stars 4 forks source link

AS Debug签名打包 #42

Open itgoyo opened 6 years ago

itgoyo commented 6 years ago

    signingConfigs {
        release {
            keyAlias 'itgoyo'
            keyPassword 'mm'
            storeFile file('C:\\Users\\itgoyo\\Desktop\\itgoyo.keystore')
            storePassword 'mm'
        }
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }

        debug {
//            jniDebuggable true
            signingConfig signingConfigs.release
        }

    }

要注意的是:signingConfigs要在buildTypes的签名,否则会出现错误Could not get unknown property 'release' for SigningConfig container of type org.gradle.api.internal.