“java.exe” exited with code 2 Xamarin.Android project

后端 未结 14 2112
生来不讨喜
生来不讨喜 2020-12-05 04:38

so I have my Xamarin.Android project which contains several libraries. When I try to build I receive an error which says \"java.exe\" exited with code 2.

After some

14条回答
  •  粉色の甜心
    2020-12-05 04:57

    My experience is...

    I updated the following elements:

    • Xamarin.Android.Support.Design
    • Xamarin.Android.Support.v4
    • Xamarin.Android.Support.v7.AppCompat
    • Xamarin.Android.Support.v7.CardView
    • Xamarin.Android.Support.v7.MediaRouter

    from 26.1.0.1 to 28.0.0.3

    Then, after it started the issue with:

    "java.exe" exited with code 2 Xamarin.Android project.

    I just ticked the Enable Multi-Dex inside the Android project property. I am using VS 2017 in windows system.

提交回复
热议问题