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

后端 未结 14 2139
生来不讨喜
生来不讨喜 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 05:13

    I had this error when switching from VS Mac to VS Windows.

    Here the topic Switching From VS Mac To VS Windows got “java.exe” exited with code 2

    The issue was comming from the Android.csproj and the Keystore Path.
    It was set to my Mac Path even if I changed it on

    VSWindows AndroidProject => Properties => Signin

    So I removed this lines on Android.csproj (edited with third text editor):

    True
    YourMacPath/Alias.keystore
    Password
    Alias
    AliasPassword
    

    On debug & release Part.

    Then you can edit them on VS Windows.

    Hope I helped someone. See ya

提交回复
热议问题