Android certificate (can not install app by using

2019-08-08 22:18发布

问题:

I developed an Android app. I then transferred the bin/myapp.apk to my android phone, and try to install it. But my phone says it can not be installed.

Someone told me it is probably because of the Android certificate in my app is wrong.

But I do not understand what is Android certificate ? Is it something defined in AndroidManifest.xml ?

回答1:

The very first thing I would check is that you allow Unknown Sources.

Settings -> Applications -> Unknown Sources, be sure this box is checked before looking into these signage issues.



回答2:

Android certificate refers to how your app was signed, if at all. You can create an unsigned apk, or sign it with a debug key, or a release key. If it's unsigned then you'll get an error when trying to install. Also, if you try to install a debug key-signed apk over a release key-signed apk, or visa-versa, it'll also fail. If you tell us what process you're using to build the apk then we may be able to give you more info.

Why are you transferring it to your phone like that? If you want to see the exact error you're getting, connect your phone to your computer and attempt to install using "adb install yourapp.apk".

You could also email the APK to yourself and open up the attachment to install. If you want see error messages, attach your phone to your computer and do "adb logcat", and then attempt the install.

You may want to peruse this:

Signing documentation



回答3:

Try the following:

  1. Check the android:minSdkVersion in AndroidManifest.xml file. It should be in accordance with your device.
  2. Try the signed APK.


回答4:

Do first step as said by adorablepuppy... Settings -> Applications -> Unknown Sources, be sure this box is checked before looking into these signage issues.

Secondly check minSdk in android.manifest. If minSdk version is greater than the vesrion in your phone than apk won't install it.

Nothing would be the issue with certificate... forget about the certificate...