电晕sdk和屏幕方向的settings.android.largeHeap

时间:2014-02-17 17:42:47

标签: android lua orientation corona

我的 build.settings 文件是

    settings = {
      orientation =
      {
        default = "landscapeRight",
        supported =
        {
        "landscapeLeft", "landscapeRight"
        }
     }
   }

一切正常 但是当我将 build.settings 文件更改为

   settings = {
    android =
    {       
        largeHeap = true    
    }
    orientation =
    {
        default = "landscapeRight",
        supported =
        {
        "landscapeLeft", "landscapeRight"
        }
    }
}

设备的方向设置为“portrait”,“NOT landscapeRight”。

我需要有“landscapeRight”方向和android设置“settings.android.largeHeap = true”一起

1 个答案:

答案 0 :(得分:3)

你忘记了android = {}之后的逗号。它应该是这样的:

android = {
  largeHeap = true
},