Build problem with gradle

Phil8 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 Tananaev8 years ago

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