syntax error in build.setting building for android in corona 2014.2511


– For more information on build.settings see the Corona SDK Build Guide at:
http://docs.coronalabs.com/guide/distribution/buildSettings/index.html

settings =
{             --------------------------Line No 7
    
    orientation =------------------------8
    {------------------------------------------------------------9 similialy downward
        – Supported values for orientation:
        – portrait, portraitUpsideDown, landscapeLeft, landscapeRight

        default = “portrait”,
        supported = { “portrait”, }
    },
    
    excludeFiles =
    {
        – Include only the necessary icon files on each platform
        iphone = { “Icon-*dpi.png”, },
        android = { “Icon.png”, “Icon-Small-*.png”, “Icon*@2x.png”, },
    },

    –
    – iOS Section
    –
    iphone =
    {
        plist =
        {
            UIStatusBarHidden = true,
            UIPrerenderedIcon = true, – set to false for “shine” overlay
            --UIApplicationExitsOnSuspend = true, – uncomment to quit app on suspend

            CFBundleIconFiles =
            {
                “Icon.png”,
                “Icon@2x.png”,
                “Icon-60.png”,
                “Icon-60@2x.png”,
                “Icon-60@3x.png”,
                “Icon-72.png”,
                “Icon-72@2x.png”,
                “Icon-76.png”,
                “Icon-76@2x.png”,
                “Icon-Small.png”,
                “Icon-Small@2x.png”,
                “Icon-Small@3x.png”,
                “Icon-Small-40.png”,
                “Icon-Small-40@2x.png”,
                “Icon-Small-50.png”,
                “Icon-Small-50@2x.png”,
            },

            --[[
            – iOS app URL schemes:
            CFBundleURLTypes =
            {
                {
                    CFBundleURLSchemes =
                    {
                        “”
                    }
                }
            }
            --]]
        }
    },
    
    –
    – Android Section
    –
    android =
    {
        usesPermissions =
        {
            “android.permission.VIBRATE”,
            “android.permission.INTERNET”,
            “android.permission.ACCESS_NETWORK_STATE”,
            “android.permission.READ_PHONE_STATE”,
            “android.permission.ACCESS_COARSE_LOCATION”,
        },

        googlePlayGamesAppId = “Ap Id here”,
    },

    plugins =
    {
        [“facebook”] =
        {
            publisherId = “com.coronalabs”
        },
        [“CoronaProvider.gameNetwork.google”] =
        {
          publisherId = “com.coronalabs”,
        },
        {
        [“CoronaProvider.ads.admob”] =
        {
            publisherId = “com.coronalabs”
        },
        [“CoronaProvider.analytics.flurry”] =
        {
            publisherId = “com.coronalabs”
        },
        [“plugin.google.play.services”] =
        {
            publisherId = “com.coronalabs” ------------109 line number similiary upward
        },
    },      -------------------------------------------- 111 Line
}  ---------------------------------------------------------   112 line

Error is this in attachment kindly help me to solve this

Hi @shakilhadir,

The build.settings file is a series of Lua tables and nested tables. Somewhere in yours, you did not properly close a table or nest a table with the necessary closing bracket. Please go through very carefully and check for this.

The following tutorial may help you on this topic:

https://coronalabs.com/blog/2014/07/08/tutorial-understanding-build-settings/

Brent

I saw this link, But I don’t know error I try my best to solve this problem I spent more than 8hours but I am not able to solve this problem, as per my knowledge no bracket is remaing after tables, kindly look it carefully may be you help me to find out error I failed to find thanks.

You have an extra { in the line just before you include admob. 

Now on the subject of admob, you’re loading the V1 plugin which is no longer available.  You need to update this to use the V2 plugin:

https://docs.coronalabs.com/plugin/ads-admob-v2/index.html

Rob

kindly plz right  code here, Because I tried all methods, but again same error, build.setting:113: ‘}’ expected to close ‘{’ at line 7> near ‘<eof>’ If i erase “{” before admob then ad mob error
         {   [“CoronaProvider.ads.admob”] =
        {
            publisherId = “com.coronalabs”
        },accurd  (error a plugin could not be download about admob etc) plz put right code here, may be it’s help me but before putting code plz see attachment clearly thanks waiting your answer. doing all I am facing same syntax error help me. I followed everything mentioned on Corona Sdk website but I was unable to resolve the issue, still same error I add codes in text in my previous post, I also attach original pic look and told me, I really frustrating because I can’t find any error in line 7 or brackets… kindly after watching carefully put right code here I already waste enough time to resolve it, I really find the main error solution            (build.setting:113: ‘}’ expected to close ‘{’ at line 7> near ‘<eof>’ )

settings = { --------------------------Line No 7 orientation =------------------------8 {------------------------------------------------------------9 similialy downward -- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight default = "portrait", supported = { "portrait", } }, excludeFiles = { -- Include only the necessary icon files on each platform iphone = { "Icon-\*dpi.png", }, android = { "Icon.png", "Icon-Small-\*.png", "Icon\*@2x.png", }, }, -- -- iOS Section -- iphone = { plist = { UIStatusBarHidden = true, UIPrerenderedIcon = true, -- set to false for "shine" overlay --UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-60.png", "Icon-60@2x.png", "Icon-60@3x.png", "Icon-72.png", "Icon-72@2x.png", "Icon-76.png", "Icon-76@2x.png", "Icon-Small.png", "Icon-Small@2x.png", "Icon-Small@3x.png", "Icon-Small-40.png", "Icon-Small-40@2x.png", "Icon-Small-50.png", "Icon-Small-50@2x.png", }, --[[-- iOS app URL schemes: CFBundleURLTypes = { { CFBundleURLSchemes = { "" } } } --]] } }, -- -- Android Section -- android = { usesPermissions = { "android.permission.VIBRATE", "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.READ\_PHONE\_STATE", "android.permission.ACCESS\_COARSE\_LOCATION", }, googlePlayGamesAppId = "Ap Id here", }, plugins = { ["facebook"] = { publisherId = "com.coronalabs" }, ["CoronaProvider.gameNetwork.google"] = { publisherId = "com.coronalabs", }, ["CoronaProvider.ads.admob"] = { publisherId = "com.coronalabs" }, ["CoronaProvider.analytics.flurry"] = { publisherId = "com.coronalabs" }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs" ------------109 line number similiary upward }, }, -------------------------------------------- 111 Line } --------------------------------------------------------- 112 line

The red { in your post below is what needs to be removed.

If I removed { before ad mob as you mentioned then this error occured (com.coronalab/coronaprovicer.ads.admob and error a plugin could not be downloaded etc Dear bro I already did this but still error, and error only in build.setting not in Main.lua any other solution? I tried all article on net on corona lab but I can’t find the solution of this error, actually I really can’t understand the nature of error, I repeat your method again then I got admob error as I wrote upper line so what I do now?

Yes.  The admob plugin you are trying to load no longer exists and must be updated before you can continue.  I mentioned it above.  Please update your build settings to remove the existing admob plugin and use the code listed here:

https://docs.coronalabs.com/plugin/ads-admob-v2/index.html

instead.

Rob

Hi @shakilhadir,

The build.settings file is a series of Lua tables and nested tables. Somewhere in yours, you did not properly close a table or nest a table with the necessary closing bracket. Please go through very carefully and check for this.

The following tutorial may help you on this topic:

https://coronalabs.com/blog/2014/07/08/tutorial-understanding-build-settings/

Brent

I saw this link, But I don’t know error I try my best to solve this problem I spent more than 8hours but I am not able to solve this problem, as per my knowledge no bracket is remaing after tables, kindly look it carefully may be you help me to find out error I failed to find thanks.

You have an extra { in the line just before you include admob. 

Now on the subject of admob, you’re loading the V1 plugin which is no longer available.  You need to update this to use the V2 plugin:

https://docs.coronalabs.com/plugin/ads-admob-v2/index.html

Rob

kindly plz right  code here, Because I tried all methods, but again same error, build.setting:113: ‘}’ expected to close ‘{’ at line 7> near ‘<eof>’ If i erase “{” before admob then ad mob error
         {   [“CoronaProvider.ads.admob”] =
        {
            publisherId = “com.coronalabs”
        },accurd  (error a plugin could not be download about admob etc) plz put right code here, may be it’s help me but before putting code plz see attachment clearly thanks waiting your answer. doing all I am facing same syntax error help me. I followed everything mentioned on Corona Sdk website but I was unable to resolve the issue, still same error I add codes in text in my previous post, I also attach original pic look and told me, I really frustrating because I can’t find any error in line 7 or brackets… kindly after watching carefully put right code here I already waste enough time to resolve it, I really find the main error solution            (build.setting:113: ‘}’ expected to close ‘{’ at line 7> near ‘<eof>’ )

settings = { --------------------------Line No 7 orientation =------------------------8 {------------------------------------------------------------9 similialy downward -- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight default = "portrait", supported = { "portrait", } }, excludeFiles = { -- Include only the necessary icon files on each platform iphone = { "Icon-\*dpi.png", }, android = { "Icon.png", "Icon-Small-\*.png", "Icon\*@2x.png", }, }, -- -- iOS Section -- iphone = { plist = { UIStatusBarHidden = true, UIPrerenderedIcon = true, -- set to false for "shine" overlay --UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-60.png", "Icon-60@2x.png", "Icon-60@3x.png", "Icon-72.png", "Icon-72@2x.png", "Icon-76.png", "Icon-76@2x.png", "Icon-Small.png", "Icon-Small@2x.png", "Icon-Small@3x.png", "Icon-Small-40.png", "Icon-Small-40@2x.png", "Icon-Small-50.png", "Icon-Small-50@2x.png", }, --[[-- iOS app URL schemes: CFBundleURLTypes = { { CFBundleURLSchemes = { "" } } } --]] } }, -- -- Android Section -- android = { usesPermissions = { "android.permission.VIBRATE", "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.READ\_PHONE\_STATE", "android.permission.ACCESS\_COARSE\_LOCATION", }, googlePlayGamesAppId = "Ap Id here", }, plugins = { ["facebook"] = { publisherId = "com.coronalabs" }, ["CoronaProvider.gameNetwork.google"] = { publisherId = "com.coronalabs", }, ["CoronaProvider.ads.admob"] = { publisherId = "com.coronalabs" }, ["CoronaProvider.analytics.flurry"] = { publisherId = "com.coronalabs" }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs" ------------109 line number similiary upward }, }, -------------------------------------------- 111 Line } --------------------------------------------------------- 112 line

The red { in your post below is what needs to be removed.

If I removed { before ad mob as you mentioned then this error occured (com.coronalab/coronaprovicer.ads.admob and error a plugin could not be downloaded etc Dear bro I already did this but still error, and error only in build.setting not in Main.lua any other solution? I tried all article on net on corona lab but I can’t find the solution of this error, actually I really can’t understand the nature of error, I repeat your method again then I got admob error as I wrote upper line so what I do now?

Yes.  The admob plugin you are trying to load no longer exists and must be updated before you can continue.  I mentioned it above.  Please update your build settings to remove the existing admob plugin and use the code listed here:

https://docs.coronalabs.com/plugin/ads-admob-v2/index.html

instead.

Rob