user5677145
user5677145

Reputation:

Java.exe exited with code 1. Xamarin

Trying to make archive for publishing and has this error

Java heap size is set to 1G.PROGUARD : warning : com.google.android.gms.tagmanager.zzcx: can't find referenced class org.apache.http.client.HttpClient

PROGUARD : warning : com.google.android.gms.tagmanager.zzcx: can't find referenced class org.apache.http.client.HttpClient

PROGUARD : warning : com.google.android.gms.tagmanager.zzcx: can't find referenced class org.apache.http.HttpEntityEnclosingRequest

PROGUARD : warning : com.google.android.gms.tagmanager.zzcx: can't find referenced class org.apache.http.HttpEntityEnclosingRequest

PROGUARD : warning : there were 148 unresolved references to classes or interfaces.

PROGUARD : warning : there were 2 unresolved references to program class members.

C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1833,3): error MSB6006: "java.exe" exited with code 1.

I made archive for publishing at Friday and everything was ok. Yesterday I have updates and installed them, but this didn't solve the problem

What's wrong?

Upvotes: 2

Views: 4120

Answers (1)

user5677145
user5677145

Reputation:

Problem is solved

create file named proguard.cfg inside Android project in the solution. Right click and set Build Action to ProguardConfig.

I add this to proguard file

-keep class com.google.android.gms.** { *; }
-dontwarn com.google.android.gms.**

Make sure you save file as UTF-8 and NOT UTF-8 BOM

Upvotes: 5

Related Questions