Some test text!

Search
Hamburger Icon

Xamarin / FAQ / java.exe error after updating to support library 28

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>
  4. Fully clean and build your project

Trial setup questions? Ask experts on Discord
Need other help? Contact Support
Pricing or product questions? Contact Sales