"Download Error Not Licensed" on published app

I’m there two days trying to publish an app for android. It is NOT the first application that I publish, and never had this problem before. The app has one expansion file.

I’ve tried:

  • Use corona build 2014.2459.
  • Use corona build 2014.2393
  • Use jarsigner and zipalign after build app on Corona SDK to sign apk file.
  • Repeat all publish steps and submit app to google 4 times.

But whenever I install the app from Google Play I get this screen:

android-error.png

Following is my building.settings:

settings = { content = { width = 768, height = 1024, scale = "letterBox", fps = 60, }, orientation = { default = "landscapeRight", supported = { "landscapeRight", "landscapeLeft" }, }, android = { usesExpansionFile = true, usesPermissions = { "android.permission.INTERNET", "com.android.vending.CHECK\_LICENSE", "android.permission.WRITE\_EXTERNAL\_STORAGE", "android.permission.ACCESS\_FINE\_LOCATION", "android.permission.ACCESS\_COARSE\_LOCATION", }, usesFeatures = { { name = "android.hardware.location", required = false }, { name = "android.hardware.location.gps", required = false }, { name = "android.hardware.location.network", required = false }, }, supportsScreens ={ smallScreens = false, normalScreens = false, largeScreens = true, xlargeScreens = true, }, } }

What can be wrong?

[SOLVED]

There was a missing character at the end of google key string, in license table in config.lua file.

Hi @virtualize,

Do you have the “license” table block included in your config.lua file?

Brent

Yes, and there was the problem: one missing character at the end of google key string.

I guess I need to sleep.

Thank u.

Hi @virtualize,

Do you have the “license” table block included in your config.lua file?

Brent

Yes, and there was the problem: one missing character at the end of google key string.

I guess I need to sleep.

Thank u.

What did that look like in your config.lua file?

I am having the exact same issue with our android apps, except I don’t know why some work and download fine and others don’t?

[lua]

application =
{
    content =
    {

        width = “320”,

        height = “480”,
        scale = “letterbox”,
        imageSuffix =
        {
            ["@2x"] = 1.3,
            ["@4x"] = 3.0,
        },
    },
    license = {
        google = {
            key = “your very long server string here”,
            policy = “serverManaged”,
        },
    }
}

[/lua]

What did that look like in your config.lua file?

I am having the exact same issue with our android apps, except I don’t know why some work and download fine and others don’t?

[lua]

application =
{
    content =
    {

        width = “320”,

        height = “480”,
        scale = “letterbox”,
        imageSuffix =
        {
            ["@2x"] = 1.3,
            ["@4x"] = 3.0,
        },
    },
    license = {
        google = {
            key = “your very long server string here”,
            policy = “serverManaged”,
        },
    }
}

[/lua]