mercury233 / libWindbot

MIT License
9 stars 3 forks source link

How to complie? #5

Open fallenstardust opened 5 months ago

fallenstardust commented 5 months ago

complienvironment:visual studio 2017/ndk-r15c/Embeddinator-4000 0.4.0 error log:

1> Invoking: C:\Program Files\Android\jdk\microsoft_dist_openjdk_1.8.0.25\bin\jar.exe cf C:\YGOProject\bot\libWindbot\output\libWindbot.jar -C C:\YGOProject\bot\libWindbot\output\classes . 1> Linking assemblies... 1> Invoking: C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /nologo /verbosity:minimal C:\YGOProject\bot\libWindbot\output\Package.proj 1>C:\YGOProject\bot\libWindbot\output\Package.proj(17,5): error MSB4018: “LinkAssemblies”任务意外失败。 1>C:\YGOProject\bot\libWindbot\output\Package.proj(17,5): error MSB4018: Mono.Linker.MarkException: Error processing method: 'System.Void WindBot.WindBot::RunAndroid(System.String)' in assembly: 'libWindbot.dll' ---> Mono.Cecil.ResolutionException: Failed to resolve System.String[] System.String::Split(System.Char,System.StringSplitOptions) 1>C:\YGOProject\bot\libWindbot\output\Package.proj(17,5): error MSB4018: 在 Mono.Linker.Steps.MarkStep.HandleUnresolvedMethod(MethodReference reference) 1>C:\YGOProject\bot\libWindbot\output\Package.proj(17,5): error MSB4018: 在 Mono.Linker.Steps.MarkStep.MarkMethod(MethodReference reference) 1>C:\YGOProject\bot\libWindbot\output\Package.proj(17,5): error MSB4018: 在 Mono.Linker.Steps.MarkStep.MarkInstruction(Instruction instruction) 1>C:\YGOProject\bot\libWindbot\output\Package.proj(17,5): error MSB4018: 在 Mono.Linker.Steps.MarkStep.MarkMethodBody(MethodBody body) 1>C:\YGOProject\bot\libWindbot\output\Package.proj(17,5): error MSB4018: 在 Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method) 1>C:\YGOProject\bot\libWindbot\output\Package.proj(17,5): error MSB4018: 在 Mono.Linker.Steps.MarkStep.ProcessQueue() 1>C:\YGOProject\bot\libWindbot\output\Package.proj(17,5): error MSB4018: --- 内部异常堆栈跟踪的结尾 --- 1>C:\YGOProject\bot\libWindbot\output\Package.proj(17,5): error MSB4018: 在 Mono.Linker.Steps.MarkStep.ProcessQueue() 1>C:\YGOProject\bot\libWindbot\output\Package.proj(17,5): error MSB4018: 在 Mono.Linker.Steps.MarkStep.Process() 1>C:\YGOProject\bot\libWindbot\output\Package.proj(17,5): error MSB4018: 在 Mono.Linker.Steps.MarkStep.Process(LinkContext context) 1>C:\YGOProject\bot\libWindbot\output\Package.proj(17,5): error MSB4018: 在 Mono.Linker.Pipeline.Process(LinkContext context) 1>C:\YGOProject\bot\libWindbot\output\Package.proj(17,5): error MSB4018: 在 MonoDroid.Tuner.Linker.Process(LinkerOptions options, LinkContext& context) 1>C:\YGOProject\bot\libWindbot\output\Package.proj(17,5): error MSB4018: 在 Xamarin.Android.Tasks.LinkAssemblies.Execute(DirectoryAssemblyResolver res) 1>C:\YGOProject\bot\libWindbot\output\Package.proj(17,5): error MSB4018: 在 Xamarin.Android.Tasks.LinkAssemblies.Execute() 1>C:\YGOProject\bot\libWindbot\output\Package.proj(17,5): error MSB4018: 在 Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() 1>C:\YGOProject\bot\libWindbot\output\Package.proj(17,5): error MSB4018: 在 Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() 1>
1> Failed to compile generated code. 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(5165,5): error MSB3073: 命令“set E4K_OUTPUT="C:\YGOProject\bot\libWindbot\output" 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(5165,5): error MSB3073: if exist %E4K_OUTPUT% rmdir /S /Q %E4K_OUTPUT% 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(5165,5): error MSB3073: "C:\Users\90530.nuget\packages\embeddinator-4000\0.4.0\tools\Embeddinator-4000.exe" "C:\YGOProject\bot\libWindbot\libWindbot\bin\Debug\libWindbot.dll" --gen=Java --platform=Android --outdir=%E4K_OUTPUT% -c -v 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(5165,5): error MSB3073: ”已退出,代码为 -1。

fallenstardust commented 5 months ago

i replaced the mscorlib.dll to Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\mscorlib.dll. but not work and shows Queue<byte[]> is double referenced.