'The upload key is the same as the deployment key. For security reasons we need them to be different. Please use a different upload certificate

The upload key is the same as the deployment key. For security reasons we need them to be different. Please use a different upload certificate.

I am getting this error while generating the keys.

How can I fix this?

enter image description here



Solution 1:[1]

The problem is you already uploaded the sign key for production or for testing and You're trying to upload the same key for production release. There's two option select another key and upload it but test users need to reinstall the app. Or continue with current key which is the same key you want to upload and you've already uploaded for production or for alpha/beta testing. If you notice under Releases signed by Google Play is written

Google will use your chosen app siging key to sign your releases

instead of

Google will generate and protect an app siging key for your releases

So google will use your own signing key to sign the app.

Solution 2:[2]

The .perm file simply means you will save it to a new file which will be in .pem format so you can use any name which is not "certicate.pem"

For example you can run it as "keytool -export -rfc -keystore upload-keystore.jks -alias upload -file mykey.pem"

Solution 3:[3]

It sounds like you are attempting to use the new Google Play App Signing feature to allow the Google Play Developer Console to sign your APKs that you upload instead of signing them yourself.

This error message means that the signing key you are attempting to use for uploading builds is the same as the one you are attempting to tell the Google Play Developer Console to use to sign builds. The two cannot be the same.

Make sure you are following these instructions as appropriate for whether you have a new or existing app.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2
Solution 3 Bryan Herbst