Android: adb install Failure INSTALL_PARSE_FAILED_NO_CERTIFICATES

Note: This is a quick and dirty workarround to fix this error

C:>f:adb install 26-signed.apk

  | 132 KB/s (2712034 bytes in 20.062s)
  |        pkg: /data/local/tmp/26-signed.apk
  | Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]

C:> "C:\rogram Files\Java\jdk1.7.0_15\bin\keytool.exe" -genkeypair -keyalg RSA -sigalg MD5withRSA -dname "c=US, cn=John Doe, o=Sun, st=California, l=Santa Clara" -keystore MyKeyStore

  | Introduzca la contraseña del almacén de claves:
  | Volver a escribir la contraseña nueva:
  | Introduzca la contraseña de clave para 
  |        (INTRO si es la misma contraseña que la del almacén de claves):

C:>"C:\Program Files\Java\jdk1.7.0_15\bin\jarsigner.exe" -keystore MyKeyStore -digestalg SHA1 -sigalg MD5withRSA -signedjar 26-signed.apk 26.apk mykey

  | Enter Passphrase for keystore:
  | 
  | Warning:
  | The signer certificate will expire within six months.

C:>f:adb install 26-signed.apk

  | 132 KB/s (2712034 bytes in 20.062s)
  |        pkg: /data/local/tmp/26-signed.apk
  | Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]

If this error occurs: open the apk with winrar/unzip and in the META-INF folder delete the .RSA and .SF old files.

C:>f:adb install 26-signed.apk

  | 88 KB/s (2700280 bytes in 29.800s)
  |        pkg: /data/local/tmp/26-signed.apk
  | Success

Note: to launch the emulator using a proxy C:>f:..\tools\emulator -http-proxy 127.0.0.1:8080 @NombreVM

P.S: Changing imei provider, model and phone num in emulator