APK created by xamarin on mac does not install

I am creating an Android application using Xamarin Studio on Mac. when debugging on a real device, I have no problem, but when I create the APK, xamarin build and sign the application successfully, but with this warning:

No -tsa or -tsacert, and this gang has no timestamp. Without a time stamp, users may not check this bank after the validity period of the subscriber’s certificate (2041-03-07) or after any future revocation date.

I can’t install this application on the device that is facing this error: Application not Installed (I must mention that to use this application I use the keystore created on the windows earlier.) Please help me fix this problem. Thanks

I use:

xamarin studio 4.2.3 Xamarin.Android
version: 4.12.1
java version "1.7.0_51"

+4
source share
2 answers

The problem here is in your version of Java. Be sure to use Java 1.6.

See this post for more information: http://developer.nickaustinlee.com/2014/03/05/android-application-not-installed-warning/

TL DR

  • Install Java 1.6
  • Find Java Home for version 1.6:

    $ /usr/libexec/java_home -v '1.6*'
    
  • Go to the Xamarin settings (cmd +,) => Location SDK => Android => install the Java SDK.

Regards, -Kaji

+4
source

I solved this by temporarily switching to Java 1.6 just to create a release archive:

sudo cp -R /System/Library/Java/JavaVirtualMachines/1.6.0.jdk /Library/Java/JavaVirtualMachines/1.6.0.jdk
sudo mv /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk ~/Desktop/jdk1.8.0_31.jdk
java -version   // shows java version "1.6.0_65" yay!! 

. Java 8:

sudo mv ~/Desktop/jdk1.8.0_31.jdk /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk
0

Source: https://habr.com/ru/post/1531233/


All Articles