I want to upload my first APK/app to the Android Market, but I got this error (which did not lead me to the correct link when searched for in stackoverflow, by the way).
Market does not accept apks signed with the debug certificate. Create a new certificate that is valid for at least 50 years. Market requires that the certificate used to sign the apk be valid until at least October 22, 2033. Create a new certificate.
Though it turns out this question is similar, the guy just says "Oh, you reminded me of how to do it" without actually explaining. I've looked at the website referred to in the "answer", but here's my problem:
I hope you can tell that I've tried a few things already! I might just be overlooking something simple -- so it's time for the steps to be recorded in stackoverflow! Thanks for your help.
In the menu bar, click Build > Generate Signed Bundle/APK. In the Generate Signed Bundle or APK dialog, select Android App Bundle or APK and click Next. Below the field for Key store path, click Create new. On the New Key Store window, provide the following information for your keystore and key, as shown in figure 2.
A signed apk is an android package file that has been digitally singed with a certificate for which the developer holds the private key. When you are doing developing your application a special debug key is created by the dev tools.
How to create an APK File for your Android App The first step you have to prepare your code for the Google Play Store. Go to Android Studio’s menu, select Build → Generate Signed APK. Create Signed APK dialog box appears.
Now that you know everything there is to be known, let’s install your certificate on your android device. Follow the steps below for it: First, go to Settings Now go to Security > Install from Phone Storage/Install from SD Card
Go to Android Studio’s menu, select Build → Generate Signed APK. Create Signed APK dialog box appears. This dialog box has a drop-down list in which you choose one of your project’s segments.
Market does not accept apks signed with the debug certificate. Create a new certificate that is valid for at least 50 years. Market requires that the certificate used to sign the apk be valid until at least October 22, 2033. Create a new certificate.
If you are using Eclipse for Development just right click on your project and click export. Now choose Android and then Export Android Application. In the next step confirm the project that you want to export. Then click next and now you should be able to select create new keystore. Now fill in the required fields and your should be able to sign your app. Be sure to make a backup of the keystore file and remember your password. Losing this will make it impossible to update your application.
If you are using the terminal to create a keystore and you have Java SDK installed there should be a program called keytool in /usr/bin (on a unix based system). On Windows the SDK should also come with the keytool but the install location may be different search for keytool.exe on your computer if keytool is not in your path already. With this tool you should be able to create a key in the following way:
keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -validity 10000
Remember that once you lose your Certificate or it expires you will not be able to sign your application. Make sure that the expiration date is a long long time in the future.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With