Android Studio 3.0 causing generate signed apk issues

903 Views Asked by At

I recently updated to Android Studio 3.0 and I'm having the following issue:

I have my .jks file and I'm trying to create a signed apk. I'm %100 sure that the Alias name and all passwords are correct but I'm getting an error that Keystore was tampered with, or password was incorrect.

I even tried creating a new key and that works one or two times but then I get the same message, can anyone explain what is happening here?

It seem s that this is happening as a result of the new Android Studio update - am I missing something about this update?

1

There are 1 best solutions below

5
Amey On

Hey so the correct siginingConfigs would look something like this

android {
  signingConfigs {
    release {
      storeFile file("PATH/TO/YOUR/FILE/mykeystore")
      storePassword "mypassword"
      keyAlias "KeyAlias"
      keyPassword "mypassword"
    }
  }

  buildTypes {
    release {
      signingConfig signingConfigs.release
    }
  }
}

Let me know if it works