API level 28 Corona SDK

– For more information on build.settings, see the Project Build Settings guide at:

https://docs.coronalabs.com/guide/distribution/buildSettings

settings =

{

orientation =

{

– Supported values for orientation:

– portrait, portraitUpsideDown, landscapeLeft, landscapeRight

default = “portrait”,

supported = { “portrait”, },

},

– Android section

android =

{

–=========API 28=====

        minSdkVersion = “29”,

                supportsTV = true,

        isGame = true,

                supportsScreens =

        {

            smallScreens  = true,

            normalScreens = true,

            largeScreens  = true,

            xlargeScreens = false,

            requiresSmallestWidthDp = 320,

        },

        allowAppsReadOnlyAccessToFiles = false,

        largeHeap = true,

                strings =

        {

            permdesc = “Custom permission description”,

            permlabel = “custom-permission-Label”,

        },

                permissions =

        {

            {

                name = “.PERMISSION1”,

                description = “@string/permdesc”,

                icon = “@mipmap/icon”,

                label = “@string/permlabel”,

                permissionGroup = “android.permission-group.COST_MONEY”,

                protectionLevel = “normal”,

            },

        },

                manifestChildElements = 

        {

            – Array of strings

            [[

            <uses-configuration android:reqFiveWayNav=“true” />

            ]],

        },

                applicationChildElements =

        {

            – Array of strings

            [[

            <activity android:name=“com.example.MyActivity”

                android:configChanges=“keyboard|keyboardHidden”/>

            ]],

        },

                apkFiles =

        {

            “google-play-services.json”,

            “res/raw/mypage.html”,

        },

                coronaActivityFlags =

        {

            resizeableActivity = true,

            persistableMode = “persistRootOnly”,

        },

        --=========API 28=====

usesPermissions =

{

“android.permission.INTERNET”,

“com.android.vending.CHECK_LICENSE”

},

},

– Project section

excludeFiles =

{

– Exclude unnecessary files for each platform

android = { “Icon.png”, “Icon-??.png”, “Icon-???.png”, “LaunchScreen.storyboardc”, },

},

window =

{

titleText =

{

default = “Licensing”,

},

},

–=========API 28=====

    iphone =

    {

        plist =

        {

             UIRequiredDeviceCapabilities =

            {

                [“gyroscope”] = true,

            },

        },

        skipPNGCrush = true,

    },

    --=========API 28=====

}

Hi! Is there a question here?

I’m going to guess you are trying to submit an app to Google Play and are getting an error about needing to support Android SDK 28 or later. 

You cannot set this in build.settings. You have to update your version of Corona. Please install the latest daily build.

You will want to remove: minSdkVersion = “29”, from your build.settings. That key does something completely different. It prevents your app from running on Android versions 9 and earlier. 

Rob