weixin_40006559
weixin_40006559
采纳率0%
2017-12-15 09:21 阅读 1.8k

“javac.exe”已退出,代码为 2。

10

小弟最近在自学.net安卓这块,在环境搭建的时候遇到一些问题,我安装Xamarin后,提示“javac.exe”已退出,代码为 2。具体输出如下:
正在还原 NuGet 程序包...
若要阻止 NuGet 在生成期间还原程序包,请打开 Visual Studio 的“选项”对话框,单击“程序包管理器”节点,然后取消选中“允许 NuGet 在生成期间下载缺少的程序包”。
1>------ 已启动生成: 项目: App5, 配置: Debug Any CPU ------
1> Processing: obj\Debug\res\layout\main.xml
1> Processing: obj\Debug\res\layout\rectanglemain.xml
1> Processing: obj\Debug\res\layout\roundmain.xml
1> Processing: obj\Debug\res\values\strings.xml
1>AAPT : warning : string 'auth_client_needs_enabling_title' has no default translation.
1>AAPT : warning : string 'auth_client_needs_installation_title' has no default translation.
1>AAPT : warning : string 'auth_client_needs_update_title' has no default translation.
1>AAPT : warning : string 'auth_client_play_services_err_notification_msg' has no default translation.
1>AAPT : warning : string 'auth_client_requested_by_msg' has no default translation.
1>AAPT : warning : string 'auth_client_using_bad_version_title' has no default translation.
1>AAPT : warning : string 'auth_client_needs_enabling_title' has no default translation.
1>AAPT : warning : string 'auth_client_needs_installation_title' has no default translation.
1>AAPT : warning : string 'auth_client_needs_update_title' has no default translation.
1>AAPT : warning : string 'auth_client_play_services_err_notification_msg' has no default translation.
1>AAPT : warning : string 'auth_client_requested_by_msg' has no default translation.
1>AAPT : warning : string 'auth_client_using_bad_version_title' has no default translation.
1>AAPT : warning : string 'auth_client_needs_enabling_title' has no default translation.
1>AAPT : warning : string 'auth_client_needs_installation_title' has no default translation.
1>AAPT : warning : string 'auth_client_needs_update_title' has no default translation.
1>AAPT : warning : string 'auth_client_play_services_err_notification_msg' has no default translation.
1>AAPT : warning : string 'auth_client_requested_by_msg' has no default translation.
1>AAPT : warning : string 'auth_client_using_bad_version_title' has no default translation.
1> App5 -> c:\users\opq\documents\visual studio 2015\Projects\App5\App5\bin\Debug\App5.dll
1> Processing: obj\Debug\res\layout\main.xml
1> Processing: obj\Debug\res\layout\rectanglemain.xml
1> Processing: obj\Debug\res\layout\roundmain.xml
1> Processing: obj\Debug\res\values\strings.xml
1> Processing: obj\Debug\res\layout\main.xml
1> Processing: obj\Debug\res\layout\rectanglemain.xml
1> Processing: obj\Debug\res\layout\roundmain.xml
1> Processing: obj\Debug\res\values\strings.xml
1>AAPT : warning : string 'auth_client_needs_enabling_title' has no default translation.
1>AAPT : warning : string 'auth_client_needs_installation_title' has no default translation.
1>AAPT : warning : string 'auth_client_needs_update_title' has no default translation.
1>AAPT : warning : string 'auth_client_play_services_err_notification_msg' has no default translation.
1>AAPT : warning : string 'auth_client_requested_by_msg' has no default translation.
1>AAPT : warning : string 'auth_client_using_bad_version_title' has no default translation.
1>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1933,3): error MSB6006: “javac.exe”已退出,代码为 2。

我在C:\Program Files (x86)\MSBuild\Xamarin\Android\目录下并没有找不到Xamarin.Android.Common.targets(1933,3)这个组件,在cmd里面查看javac截图如下图片说明
图片说明

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新

  • morgerton 白萝卜blb 2017-12-15 09:42

    这种情况你最好把java卸了重装一遍,以后说不定还会有更大的隐患。

    点赞 评论 复制链接分享

相关推荐