【问题标题】:Vsts Build for Xamarin Android failsXamarin Android 的 Vsts 构建失败
【发布时间】:2017-11-01 06:12:45
【问题描述】:

我在托管 (Hosted VS2017) VSTS Build 上收到以下错误:

COMPILETODALVIK(0,0): Error :
Processed: ##vso[task.logissue type=Error;sourcepath=COMPILETODALVIK;linenumber=0;columnnumber=0;code=;]
COMPILETODALVIK : UNEXPECTED TOP-LEVEL error :  [d:\a\1\s\src\Android\Android.csproj]
  Exception in thread "main" 
  Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "main"

本地构建工作没有错误。

【问题讨论】:

标签: android xamarin tfs azure-pipelines


【解决方案1】:

感谢@Milen 添加链接。 在我的项目中将 Java Max Heap Size 增加到 1G 可以解决问题。您将在 Android 选项下的项目属性中找到此配置,然后单击高级按钮。

注意:在您需要的构建配置中执行此操作。我将它添加到 Debug 和 Release 中。

【讨论】:

    猜你喜欢
    • 2017-02-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-04-22
    • 1970-01-01
    相关资源
    最近更新 更多