Skip to content

Disabling multi-dex throws "java.exe" exited with code 2 #3351

@adrianknight89

Description

@adrianknight89

In the recent Developer Summit, it was recommended that we turn off multi-dex. When I do that, I'm getting "java.exe" exited with code 2. This is all for a Xamarin.Forms project with version 4. I observed that using d8 & r8 while multi-dex is turned off fixes the problem. I'm building on Windows.

@jonathanpeppers

  • Just to clarify, should d8 & r8 be turned on in debug and release or just one environment?
  • Also, I saw that a brand new XF project does not explicitly specify d8 & r8 but disabling multi-dex works. So it looks like I lack some config somewhere. My project was created a year ago.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions