Some test text!

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. Open your project file (with extension .csproj) in a text editor

  2. Add a new property group:

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