问题描述
大家好
将Xamarin.Forms项目从VSMac切换到VsWindows时遇到问题!部署时,"java.exe"以代码2退出.
I got an issue when switching my Xamarin.Forms project from VSMac to VsWindows!"java.exe" exited with code 2 when deploying.
我已经尝试:
- 删除bin/obj/文件夹
- 删除所有软件包,然后重新添加
- MultiDex
- 验证路径(删除特殊字符!@#$%ˆ& *(-_"等.)
如果您有个主意,请告诉我;)
If you got an idea, tell me ;)
此致
推荐答案
在翻到Google的第三页时,我没有找到任何答案.
但是我自己找到了答案.
With turning third page of google, I didn't find any answer.
But I found the answer by my own.
问题出在Android.csproj和密钥库路径上.
The issue was comming from the Android.csproj and the Keystore Path.
即使我已经在
VSWindows AndroidProject =>属性=>登录
VSWindows AndroidProject => Properties => Signin
<AndroidKeyStore>True</AndroidKeyStore>
<AndroidSigningKeyStore>YourMacPath/Alias.keystore</AndroidSigningKeyStore>
<AndroidSigningStorePass>Password</AndroidSigningStorePass>
<AndroidSigningKeyAlias>Alias</AndroidSigningKeyAlias>
<AndroidSigningKeyPass>AliasPassword</AndroidSigningKeyPass>
在调试时&释放零件.
On debug & release Part.
然后您可以在VS Windows上对其进行编辑.
Then you can edit them on VS Windows.
希望我帮助了某人.见
Hope I helped someone.See ya
这篇关于从VS Mac切换到VS Windows得到"java.exe".用代码2退出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!