I receive this error when I try to rebuild app with proguard: (I tried all the solutions suggested for the error MSB6006: "java.exe" exited with code 1, but in my case, it seems have some conflicts with GCM )
19>PROGUARD : warning : com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced method 'void setLatestEventInfo(android.content.Context,java.lang.CharSequence,java.lang.CharSequence,android.app.PendingIntent)' in class android.app.Notification 19>PROGUARD : warning : com.google.android.gms.gcm.zza: can't find referenced method 'void setLatestEventInfo(android.content.Context,java.lang.CharSequence,java.lang.CharSequence,android.app.PendingIntent)' in class android.app.Notification 19> You should check if you need to specify additional program jars. 19>PROGUARD : warning : there were 2 unresolved references to program class members. 19>
Your input classes appear to be inconsistent. 19> You may need to recompile them and try again. 19> Alternatively, you may have to specify the option 19>
'-dontskipnonpubliclibraryclassmembers'. 19> java.io.IOException: Please correct the above warnings first. 19> at proguard.Initializer.execute(Initializer.java:321) 19> at proguard.ProGuard.initialize(ProGuard.java:211) 19> at proguard.ProGuard.execute(ProGuard.java:86) 19> at proguard.ProGuard.main(ProGuard.java:492) 19> Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8 19>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2118,3): error MSB6006: "java.exe" exited with code 1.
Xamarin.Androidprojects) wth GCM and do not have a problem. I would assume it is the use ofsetLatestEventInfoin the error you posted as that is an older/deprecated method (assuming you are using it and targeting older APIs). The answer that was posted should help. - SushiHangover