After the most recent update (Xamarin.Android.Support libraries, V28.0.0, Build tools 28.0.3), every build is failing with
"java.exe" exited with Code 2
I had previously enabled Multi-Dex to get rid of this issue, and that has worked without a problem until now. I also tried re-enabling ProGuard, and following all of the steps from this answer, including the change to MainDexClasses.bat.
There are a couple of new warnings, but I haven't been able to work out whether or not they are causing the new problem:
CREATEMULTIDEXMAINDEXCLASSLIST: warning : can't write resource [META-INF/maven/com.squareup.okio/okio/pom.xml] (Duplicate zip entry [okio.jar:META-INF/maven/com.squareup.okio/okio/pom.xml])
CREATEMULTIDEXMAINDEXCLASSLIST: warning : can't write resource [META-INF/maven/com.squareup.okio/okio/pom.properties] (Duplicate zip entry [okio.jar:META-INF/maven/com.squareup.okio/okio/pom.properties])
UPDATE: It looks like this is a bug that has crept in with the V28 SDK. There is a repro at https://github.com/SpiegelSoft/Repro, and I have created an issue at https://github.com/xamarin/xamarin-android/issues/2565
If anyone can find any neat workarounds, I will be very grateful.
I had this issue and Fix for me was:
PCL/Shared Project
and all other platforms including AndroidIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With