Search code examples
androidxamarin.androidcode-signingxamarin-studio

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.


Solution

  • 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