android – Error publishing app to Google Play

Question:

I'm trying to post the Apk but get this error message

    O envio falhou
Você fez o upload de um APK depurável. Por razões de segurança, desative a depuração antes de publicá-lo no Google Play. Saiba mais sobre APKs depuráveis..
Use um nome de pacote diferente. "com.example" é restrito.

Answer:

Google Play does not accept a debug version of your .apk file. You can only upload a compiled .apk as a release version. Also, it must be signed with the Android developer key. Be sure to distribute an .apk file that is your signed version, as described here in the Android documentation :

By generating your debug key that would look something like:

$keytool -list -v -keystore debug.keystore -alias androiddebugkey -storepass android -keypass android 
  • Keystore name: “debug.keystore”
  • Keystore password: “android”
  • Key alias: “androiddebugkey”
  • Key password: “android”
  • CN: “CN=Android Debug,O=Android,C=US”

Por gerar sua chave de release seria alterado para:

$keytool -list -v -keystore "c:\minhachave.keystore" -alias minhachave -storepass android 
Scroll to Top
AllEscort