java.exe error after updating to support library 28

Question:

We are facing java.exe error when building application project in Xamarin.Android with latest version 6.9.3 after updating to support library 28.

Answer:

  1. Install Visual Studio 2019 or latest version of Visual Studio for Mac
  2. Open your project file (with extension .csproj) in a text editor
  3. Add a new property group:

sh

1<PropertyGroup>
2 <DxExtraArguments>--dex --no-strict --force-jumbo</DxExtraArguments>
3 <AndroidMultiDexClassListExtraArgs>--disable-annotation-resolution-workaround</AndroidMultiDexClassListExtraArgs>
4</PropertyGroup>
  1. Fully clean and build your project

Did you find this helpful?

Trial setup questions?

Ask experts on Discord

Need other help?

Contact Support

Pricing or product questions?

Contact Sales