gpt4 book ai didi

java - 我遇到错误 : “javac.exe” exited with code 3

转载 作者:行者123 更新时间:2023-12-02 04:02:19 26 4
gpt4 key购买 nike

我创建了一个新项目并尝试构建,但出现此错误:“javac.exe”退出,代码为 3。输出错误为:

Creating C:\Users\Пользователь\AppData\Local\Xamarin.Android\Cache\Mono.Android.Platform.ApiLevel_28.apk

1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.Debugging.targets(417,2): warning : One or more errors occurred.

1> App5.Android -> C:\Users\Пользователь\source\repos\App5\App5\App5.Android\bin\Debug\App5.Android.dll

1> No way to resolve conflict between "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e". Choosing "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" arbitrarily.

1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2664,3): error MSB6006: "javac.exe" exited with code 3.

========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========

最佳答案

简单搜索“android 无法解决之间的冲突”就会发现论坛帖子 here讨论这个问题。以下链接为官方Xamarin bug report揭示the following solution :

将其添加到您的 app.config 中:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Runtime" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

关于java - 我遇到错误 : “javac.exe” exited with code 3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56727436/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com