构建应用程序时出现System.OutOfMemoryException警告

时间:2017-10-11 09:56:06

标签: xamarin.android

我是Xamarin的新手。在构建我的项目时,我遇到了这个警告。我试图寻找它的解决方案,但没有一个解决了这个问题。

Severity    Code    Description Project File    Line    Source  Suppression State
Warning     Exception of type 'System.OutOfMemoryException' was thrown.
at Microsoft.Cci.Pdb.MsfDirectory..ctor(PdbReader reader, PdbFileHeader head, BitAccess bits)
at Microsoft.Cci.Pdb.PdbFile.LoadFunctions(Stream read, BitAccess bits, Boolean readAllStrings)
at Microsoft.Cci.Pdb.PdbFile.LoadFunctions(Stream read, Boolean readAllStrings)
at Pdb2Mdb.Converter.Convert(String filename)
at Xamarin.Android.Tasks.ConvertDebuggingFiles.Execute()

1 个答案:

答案 0 :(得分:0)

多数民众赞成与RAM不相关。

您可以尝试增加虚拟内存。

如果你正在使用MAC - 你需要8 gb内存。

在Windows上,当我们遇到这个问题时,我们不得不将其增加到16 gb以摆脱它。(vs和android studio都在那里)。