locked
appcenter android build with multidex RRS feed

  • Question

  • User387805 posted

    I have my appcenter android build setup and working well. Recently I added a package Xamarin.Forms.AppLinks to enable deep linking in app and my local VS build failed with error 'error MSB6006: "java" exited with code 2". After some research I enabled Multi-Dex option for android project and it fixed the issue.

    But Appcenter android build is still failing with same below error. Not sure if appcenter is ignoring this settings. Has anyone had experience compiling appcenter android build with multidex enabled?

    error MSB6006: "java" exited with code 2.

    msbuild' failed with exit code 1

    Monday, July 29, 2019 6:04 PM

All replies

  • User387805 posted

    In appcenter build output I see below.

    trouble writing output: Too many field references to fit in one dex file: 73285; max is 65536. You may try using multi-dex. If multi-dex is enabled then the list of classes for the main dex list is too large.

    Monday, July 29, 2019 6:40 PM
  • User387805 posted

    Appcenter build log

    Monday, July 29, 2019 7:26 PM
  • User371688 posted

    Same thread: https://forums.xamarin.com/discussion/162900/appcenter-android-build-with-multidex

    Tuesday, July 30, 2019 9:10 AM
  • User387805 posted

    its duplicate of https://forums.xamarin.com/discussion/162900/appcenter-android-build-with-multidex

    Tuesday, July 30, 2019 1:49 PM