Build problem with gradle

Phil7 years ago

Hi Anton,

I'm trying to sign the APK with gradle. I tried to put the configuration below on build.gradle and it returns an error that says it cannot find android method. Where should I put the configuration?

android {

    signingConfigs {
        release {
            storeFile file("mykey.keystore")
            storePassword "Storepass"
            keyAlias "MyAlias"
            keyPassword "KeyPass"
        }
    }
    buildTypes {
        release {
            signingConfig signingConfigs.release
        }
    }
}
Anton Tananaev7 years ago

I would recommend to use Android Studio to sign your APK file instead of gradle script.