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

后端 未结 14 2106
生来不讨喜
生来不讨喜 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: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 ~

    0 讨论(0)
  • 2020-12-05 05:16

    Try reset the keystore <AndroidSigningKeyStore> or change to false the key

    >

    <AndroidKeyStore>true</AndroidKeyStore>
    

    Only to check. But remembering that it needs to be set to true.

    After Clean and Rebuild the solution.

    0 讨论(0)
提交回复
热议问题