我在xamarin.forms项目中遇到此错误,这真令人讨厌,因为我已经尝试了以下所有解决方案,但没有一个能解决!
编辑
这是完整的错误:
10>"C:\Users\Home\Desktop\Vebko\Vebko\Vebko.Android\Vebko.Android.csproj" (Rebuild;BuiltProjectOutputGroup;BuiltProjectOutputGroupDependencies;DebugSymbolsProjectOutputGroup;DebugSymbolsProjectOutputGroupDependencies;DocumentationProjectOutputGroup;DocumentationProjectOutputGroupDependencies;SatelliteDllsProjectOutputGroup;SatelliteDllsProjectOutputGroupDependencies;SGenFilesOutputGroup;SGenFilesOutputGroupDependencies target) (1) ->
10>(_CompileToDalvikWithDx target) ->
10> CREATEMULTIDEXMAINDEXCLASSLIST : warning : can't write resource [META-INF/LICENSE.txt] (Duplicate zip entry [commons-lang3-3.5.jar:META-INF/LICENSE.txt])
10> CREATEMULTIDEXMAINDEXCLASSLIST : warning : can't write resource [META-INF/NOTICE.txt] (Duplicate zip entry [commons-lang3-3.5.jar:META-INF/NOTICE.txt])
10>
10>
10>"C:\Users\Home\Desktop\Vebko\Vebko\Vebko.Android\Vebko.Android.csproj" (Rebuild;BuiltProjectOutputGroup;BuiltProjectOutputGroupDependencies;DebugSymbolsProjectOutputGroup;DebugSymbolsProjectOutputGroupDependencies;DocumentationProjectOutputGroup;DocumentationProjectOutputGroupDependencies;SatelliteDllsProjectOutputGroup;SatelliteDllsProjectOutputGroupDependencies;SGenFilesOutputGroup;SGenFilesOutputGroupDependencies target) (1) ->
10>(_CompileToDalvikWithDx target) ->
10> C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2610,3): error MSB6006: "java.exe" exited with code 2.
10>
10> 260 Warning(s)
10> 1 Error(s)
10>
10>Time Elapsed 00:01:23.09
========== Rebuild All: 9 succeeded, 1 failed, 1 skipped ==========