Runetime error with v2019.3502 - Google Mobile Ads sdk ? Not using

Hi,

The build is now succesful but the app crashes after “copy to device and launch”, here is the log :

https://pastebin.com/X0KAnSmv

We are not using any ads plugin.

Regards,

Pascal Bancel
Keetiz CTO

Can you post your build.settings?

settings =
{
      orientation = {
            default = “portrait”,
            supported = { “portrait” },
            – supported = { “landscapeLeft”, “landscapeRight”, “portrait”, “portraitUpsideDown”, },
      },
    splashScreen =
    {
        enable = false
    },
      android =
      {
          useGoogleServicesJson = true,
        usesPermissions = {
            “android.permission.INTERNET”,
            “android.permission.ACCESS_NETWORK_STATE”,
            “android.permission.ACCESS_FINE_LOCATION”,
            “android.permission.ACCESS_COARSE_LOCATION”,
            “android.permission.CALL_PHONE”,
        },
        facebookAppId = “1629420120665771”,
        usesFeatures = {
            – If you set permissions “ACCESS_FINE_LOCATION” and “ACCESS_COARSE_LOCATION” above,
            – then you may want to set up your app to not require location services as follows.
            – Otherwise, devices that do not have location sevices (such as a GPS) will be unable
            – to purchase this app in the app store.
            { name = “android.hardware.location”, required = false },
            { name = “android.hardware.location.gps”, required = false },
            { name = “android.hardware.location.network”, required = false },
            { name = “android.hardware.telephony”, required = false },
        },
        intentFilters = {
            {
                label = “Keetiz”,
                actions = { “android.intent.action.VIEW” },
                categories =
                {
                    “android.intent.category.DEFAULT”,
                    “android.intent.category.BROWSABLE”,
                },
                data = { scheme = “keetiz” },
            },
            {
                label = “Keetiz”,
                actions = { “android.intent.action.VIEW” },
                categories =
                {
                    “android.intent.category.DEFAULT”,
                    “android.intent.category.BROWSABLE”,
                },
                data = { scheme = “https”, host=“www.keetiz.com”, pathPattern="/keetizflashcode.*" },
            }
            ,
            {
                label = “Keetiz”,
                actions = { “android.intent.action.VIEW” },
                categories =
                {
                    “android.intent.category.DEFAULT”,
                    “android.intent.category.BROWSABLE”,
                },
                data = { scheme = “https”, host=“k-z.fr”, pathPattern="/.*" },
            }

        – You can add more intent filters here.
        },
    },

      iphone =
      {
        xcassets = “Images.xcassets”,
        plist =
        {
            UILaunchStoryboardName = “LaunchScreen”,
            FacebookUrlSchemeSuffix = “suffix”,
            [“URL types”] =
            {
                item =
                {
                    [“URL Schemes”] = { [“Item 0”] = “fb1629420120665771suffix” },
                },
            },
            MinimumOSVersion = “8.0”,
            FacebookAppID = “1629420120665771”,
            CFBundleLocalizations =
            {
                “en”,
                “fr”
            },
            CFBundleURLTypes =
            {
                {
                    CFBundleURLSchemes =
                    {
                        “keetiz”,
                        “fb1629420120665771suffix”,
                        “db-l1q0pln8qsi8qyp”,
                    }
                }
            },
              UIBackgroundModes = {“remote-notification”}, --plugin OneSignal
            NSLocationAlwaysUsageDescription=“Pour trier les commerces par proximité, Keetiz a besoin de connaître ta position”,
            NSLocationWhenInUseUsageDescription=“Pour trier les commerces par proximité, Keetiz a besoin de connaître ta position”,
            ITSAppUsesNonExemptEncryption = false,
            LSApplicationQueriesSchemes =
            {
                “keetiz”
            }
        },
      },

      plugins =
      {
        [“CoronaProvider.native.popup.activity”] = { publisherId = “com.coronalabs”, supportedPlatforms = {iphone=true} },
        [“CoronaProvider.native.popup.social”] = { publisherId = “com.coronalabs” },
        [“plugin.OneSignal”] = { publisherId = “com.onesignal” },
        [“plugin.google.play.services”] = { publisherId = “com.coronalabs”, supportedPlatforms = { android = true, [“android-kindle”]=true } },
        [“plugin.facebook.v4a”] = { publisherId = “com.coronalabs” },
        [“plugin.pasteboard”] = { publisherId = “com.coronalabs”, },
        [“plugin.googleAnalytics”] = { publisherId = “com.coronalabs”, supportedPlatforms = { iphone=true, android=true, } },
        [“plugin.openudid”] = { publisherId = “com.coronalabs”, supportedPlatforms = { iphone=true, [“iphone-sim”]=true }, },
        [“plugin.firebaseAnalytics”] = { publisherId = “tech.scotth”,}
    },

    excludeFiles =
    {
        all = {
            “Images.xcassets”,".git"
        },
        android = {
           “LaunchScreen.storyboardc”
        },
        ios = {
            “Icon-hdpi.png”,“Icon-ldpi.png”,“Icon-mdpi.png”,“Icon-xhdpi.png”,“Icon-xxhdpi.png”,“Icon-xxxhdpi.png”
        },
    },
}
 

Remove this:

 [“plugin.google.play.services”] = { publisherId = “com.coronalabs”, supportedPlatforms = { android = true, [“android-kindle”]=true } },

It’s not needed any more. This is the old admob plugin which had dependencies that other plugins used to use. It’s likely causing issues.

Rob

Hi Rob,

Problem solved. Thank you very much !

Regards

In fact, I made it so that build will crash if this plugin is used with message to remove it

Can you post your build.settings?

settings =
{
      orientation = {
            default = “portrait”,
            supported = { “portrait” },
            – supported = { “landscapeLeft”, “landscapeRight”, “portrait”, “portraitUpsideDown”, },
      },
    splashScreen =
    {
        enable = false
    },
      android =
      {
          useGoogleServicesJson = true,
        usesPermissions = {
            “android.permission.INTERNET”,
            “android.permission.ACCESS_NETWORK_STATE”,
            “android.permission.ACCESS_FINE_LOCATION”,
            “android.permission.ACCESS_COARSE_LOCATION”,
            “android.permission.CALL_PHONE”,
        },
        facebookAppId = “1629420120665771”,
        usesFeatures = {
            – If you set permissions “ACCESS_FINE_LOCATION” and “ACCESS_COARSE_LOCATION” above,
            – then you may want to set up your app to not require location services as follows.
            – Otherwise, devices that do not have location sevices (such as a GPS) will be unable
            – to purchase this app in the app store.
            { name = “android.hardware.location”, required = false },
            { name = “android.hardware.location.gps”, required = false },
            { name = “android.hardware.location.network”, required = false },
            { name = “android.hardware.telephony”, required = false },
        },
        intentFilters = {
            {
                label = “Keetiz”,
                actions = { “android.intent.action.VIEW” },
                categories =
                {
                    “android.intent.category.DEFAULT”,
                    “android.intent.category.BROWSABLE”,
                },
                data = { scheme = “keetiz” },
            },
            {
                label = “Keetiz”,
                actions = { “android.intent.action.VIEW” },
                categories =
                {
                    “android.intent.category.DEFAULT”,
                    “android.intent.category.BROWSABLE”,
                },
                data = { scheme = “https”, host=“www.keetiz.com”, pathPattern="/keetizflashcode.*" },
            }
            ,
            {
                label = “Keetiz”,
                actions = { “android.intent.action.VIEW” },
                categories =
                {
                    “android.intent.category.DEFAULT”,
                    “android.intent.category.BROWSABLE”,
                },
                data = { scheme = “https”, host=“k-z.fr”, pathPattern="/.*" },
            }

        – You can add more intent filters here.
        },
    },

      iphone =
      {
        xcassets = “Images.xcassets”,
        plist =
        {
            UILaunchStoryboardName = “LaunchScreen”,
            FacebookUrlSchemeSuffix = “suffix”,
            [“URL types”] =
            {
                item =
                {
                    [“URL Schemes”] = { [“Item 0”] = “fb1629420120665771suffix” },
                },
            },
            MinimumOSVersion = “8.0”,
            FacebookAppID = “1629420120665771”,
            CFBundleLocalizations =
            {
                “en”,
                “fr”
            },
            CFBundleURLTypes =
            {
                {
                    CFBundleURLSchemes =
                    {
                        “keetiz”,
                        “fb1629420120665771suffix”,
                        “db-l1q0pln8qsi8qyp”,
                    }
                }
            },
              UIBackgroundModes = {“remote-notification”}, --plugin OneSignal
            NSLocationAlwaysUsageDescription=“Pour trier les commerces par proximité, Keetiz a besoin de connaître ta position”,
            NSLocationWhenInUseUsageDescription=“Pour trier les commerces par proximité, Keetiz a besoin de connaître ta position”,
            ITSAppUsesNonExemptEncryption = false,
            LSApplicationQueriesSchemes =
            {
                “keetiz”
            }
        },
      },

      plugins =
      {
        [“CoronaProvider.native.popup.activity”] = { publisherId = “com.coronalabs”, supportedPlatforms = {iphone=true} },
        [“CoronaProvider.native.popup.social”] = { publisherId = “com.coronalabs” },
        [“plugin.OneSignal”] = { publisherId = “com.onesignal” },
        [“plugin.google.play.services”] = { publisherId = “com.coronalabs”, supportedPlatforms = { android = true, [“android-kindle”]=true } },
        [“plugin.facebook.v4a”] = { publisherId = “com.coronalabs” },
        [“plugin.pasteboard”] = { publisherId = “com.coronalabs”, },
        [“plugin.googleAnalytics”] = { publisherId = “com.coronalabs”, supportedPlatforms = { iphone=true, android=true, } },
        [“plugin.openudid”] = { publisherId = “com.coronalabs”, supportedPlatforms = { iphone=true, [“iphone-sim”]=true }, },
        [“plugin.firebaseAnalytics”] = { publisherId = “tech.scotth”,}
    },

    excludeFiles =
    {
        all = {
            “Images.xcassets”,".git"
        },
        android = {
           “LaunchScreen.storyboardc”
        },
        ios = {
            “Icon-hdpi.png”,“Icon-ldpi.png”,“Icon-mdpi.png”,“Icon-xhdpi.png”,“Icon-xxhdpi.png”,“Icon-xxxhdpi.png”
        },
    },
}
 

Remove this:

 [“plugin.google.play.services”] = { publisherId = “com.coronalabs”, supportedPlatforms = { android = true, [“android-kindle”]=true } },

It’s not needed any more. This is the old admob plugin which had dependencies that other plugins used to use. It’s likely causing issues.

Rob

Hi Rob,

Problem solved. Thank you very much !

Regards

In fact, I made it so that build will crash if this plugin is used with message to remove it