For the complete documentation index, see llms.txt. This page is also available as Markdown.

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:

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

Last updated

Was this helpful?