zoukankan      html  css  js  c++  java
  • 【Xamarin报错】 COMPILETODALVIK : UNEXPECTED TOP-LEVEL error java.lang.OutOfMemoryError: Java heap space

    Xamarin Android 编译报错:

    COMPILETODALVIK : UNEXPECTED TOP-LEVEL error  

    java.lang.OutOfMemoryError: Java heap space

    解决:

    用记事本打开 xamarin android的项目文件 *.csproj

    找到<JavaMaximumHeapSize>节点,我的配置是空的,加上1G后,编译通过。

    参考:

    The fix was to add this section in your .csproj file:

    <PropertyGroup> 
        <JavaMaximumHeapSize>1G</JavaMaximumHeapSize> 
    </PropertyGroup>

    That will let Java allocate enough memory to complete your build.

    That’s it! I hope someone find this post useful!

    http://geekswithblogs.net/dotNETvinz/archive/2015/02/17/xamarin.android-and-visual-studiondashbuild-failed-with-no-errors.aspx

  • 相关阅读:
    优化webstorm打开项目速度
    组件 -- Button
    组件 --BreadCrumb--面包屑
    组件 -- Badge
    组件 -- Alert
    表格-table 样式
    image 样式设置
    文本和字体样式设置
    bootstrap-网格系统
    c#方法
  • 原文地址:https://www.cnblogs.com/luqingfei/p/5652413.html
Copyright © 2011-2022 走看看