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

后端 未结 14 2114
生来不讨喜
生来不讨喜 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条回答
  •  Happy的楠姐
    2020-12-05 05:14

    In my case this was link to the "Sign the .APK file using the following keystore details" option as Hein Andre Grønnestad mentioned. The location was not correct.

    I wanted to put a path that could work for everyone at work so I used $HOME/Library/... instead of /Users/Me/Library/...

    The problem is $HOME doesn't mean anything special for java so the keystore file could not be found.

    Solution: use relative path or absolute path without $HOME variable or ~

提交回复
热议问题