Why signed android apk is not running on emulator

前端 未结 6 2087
情书的邮戳
情书的邮戳 2021-02-11 03:00

I have made a signed apk of an android project. Whenever my client try to run it on the emulator, he faces the following error message:

D:\\Android\\android-sdk-         


        
6条回答
  •  暖寄归人
    2021-02-11 03:53

    As mentioned by steelbytes, the error INSTALL_PARSE_FAILED_NO_CERTIFICATES suggests that the APK isn't signed like you think it is.

    Run this command to verify which certificate was used to sign the APK:
    jarsigner -verify -verbose -certs abc.apk

    For each entry in the APK, you should see something like this:

    sm    152412 Wed Oct 14 14:16:52 CEST 2009 classes.dex
    
          X.509, CN=Meebo, OU=Meebo, O=Meebo, L=Mountain View, ST=California, C=US
          [certificate is valid from 28/10/08 06:49 to 13/08/82 07:49]
    

    Otherwise, if the APK isn't signed, you'll get the message jar is unsigned.

提交回复
热议问题