title: Java exited with code 1 (MSB6006) - Xamarin.Droid
body: <p>I have tried out a lot of solutions on how to get this resolved. My debug works alright. But as at now, i am trying to build archive my apk in the release mode. When i re-build in the release mode i get the error <code>Java exited with code 1 (MSB6006)</code>.</p>
  
  <p>Proguard and multi-dex is enabled in my Droid project. My heap size is also set already to 1G. I also created a proguard.cfg file in my Droid project but i still get the same error.  When i check the error reference, it leads to me this in my browser <code>MSBuild.ToolTask.ToolCommandFailed</code>.</p>
  
  <p>Is there any other i could solve this ?</p>
  
  <p>Attached is the <a href="https://gist.github.com/anonymous/9e7fba8cc745ce9ae06fa2c8ae075697" rel="nofollow noreferrer">https://gist.github.com/anonymous/9e7fba8cc745ce9ae06fa2c8ae075697</a>  - Full Diagnostic Build Output.</p>
  
  <p><strong>proguard.cfg</strong></p>
  
  <pre><code># This is Xamarin-specific (and enhanced) configuration.
  
  -dontobfuscate
  
  -keep class mono.MonoRuntimeProvider { *; &lt;init&gt;(...); }
  -keep class mono.MonoPackageManager { *; &lt;init&gt;(...); }
  -keep class mono.MonoPackageManager_Resources { *; &lt;init&gt;(...); }
  -keep class mono.android.** { *; &lt;init&gt;(...); }
  -keep class mono.java.** { *; &lt;init&gt;(...); }
  -keep class mono.javax.** { *; &lt;init&gt;(...); }
  -keep class opentk.platform.android.AndroidGameView { *; &lt;init&gt;(...); }
  -keep class opentk.GameViewBase { *; &lt;init&gt;(...); }
  -keep class opentk_1_0.platform.android.AndroidGameView { *; &lt;init&gt;(...); }
  -keep class opentk_1_0.GameViewBase { *; &lt;init&gt;(...); }
  
  -keep class android.runtime.** { &lt;init&gt;(***); }
  -keep class assembly_mono_android.android.runtime.** { &lt;init&gt;(***); }
  # hash for android.runtime and assembly_mono_android.android.runtime.
  -keep class md52ce486a14f4bcd95899665e9d932190b.** { *; &lt;init&gt;(...); }
  -keepclassmembers class md52ce486a14f4bcd95899665e9d932190b.** { *; &lt;init&gt;(...); }
  
  # Android's template misses fluent setters...
  -keepclassmembers class * extends android.view.View {
     *** set*(***);
  }
  
  # also misses those inflated custom layout stuff from xml...
  -keepclassmembers class * extends android.view.View {
     &lt;init&gt;(android.content.Context,android.util.AttributeSet);
     &lt;init&gt;(android.content.Context,android.util.AttributeSet,int);
  } 
  </code></pre>