Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xamarin.android App signing does not work

So im trying to publish my new android app to the Google PlayStore. From reading this tutorial I understand that I have to sign my app before releasing it to the PlayStore. I did exactly the same as in the tutorial. After uploading it to the PlayStore I tried to install the App on my device. I got the message "Package file was not signed correctly". This is strage.. In xamaran studio I get the message "Package succesfully signed".

If I try to install the App from the apk on the device I get the message "Unable to install"

What could be wrong here?

Im using Xamarin Studion on a Mac.

like image 379
Florian Schaal Avatar asked Jan 26 '26 13:01

Florian Schaal


2 Answers

Found the problem..This is a JAVA tooling problem. This occurs frequently with mixing JDK and JRE tools on the system.

DO NOT USE THE TOOLS FROM Java 7!

Only use the tools from JDK 6. You can check what version you have by typing:

java -version

If you are still unsure whether the signing was succesfull you can type:

which jarsigner

jarsigner -verify -verbose -certs myapp.apk
like image 73
Florian Schaal Avatar answered Jan 29 '26 01:01

Florian Schaal


When publishing on a Mac, I automate the process using rake. This gist is a sample rake file showing how to do so. This rake file will version the assembly, compile the application, and then sign/zipalign the APK.

Note that the Albacore gem must also be installed.

like image 25
Tom Opgenorth Avatar answered Jan 29 '26 01:01

Tom Opgenorth



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!