Module admob/applovin/flurry not found. Build troubles.

Hello. 

I’m getting “Runtime error” (screenshots attached). Have a problem with admob/applovin/flurry plug in. Only for iOS.

iOS Target: 9.2 Corona: 2016.2830

Xcode is 7.2.1

build.settings:

settings =

{

orientation = 

{

default = “landscapeRight”,

supported =

{

“landscapeRight”, “landscapeLeft”

},

},

plugins =

{

        [“plugin.google.play.services”] =

        {

            publisherId = “com.coronalabs”,

            supportedPlatforms = { android=true },

        },

        

        [“plugin.applovin”] =

        {

            publisherId = “com.coronalabs”,

            supportedPlatforms = { iphone=true, android=true, appletvos=true },

        },

        

[“plugin.notifications”] =

        {

            publisherId = “com.coronalabs”

        },

[“plugin.google.iap.v3”] =

        {

            publisherId = “com.coronalabs”,

            supportedPlatforms = { android=true },

        },

  [“CoronaProvider.gameNetwork.google”] =

  {

     publisherId = “com.coronalabs”,

     supportedPlatforms = { android=true },

  },

[“CoronaProvider.gameNetwork.apple”] =

        {

            publisherId = “com.coronalabs”,

            supportedPlatforms = { iphone=true, [“iphone-sim”]=true },

        },

        [“plugin.OneSignal”] =

        {

            publisherId = “com.onesignal”,

        },

   [“CoronaProvider.analytics.flurry”] =

        {

            publisherId = “com.coronalabs”,

            supportedPlatforms = { iphone=true, android=true },

        },

        [“CoronaProvider.native.popup.social”] =

        {

            publisherId = “com.coronalabs”,

        },

        [“CoronaProvider.ads.vungle”] =

        {

            publisherId = “com.vungle”,

        },

        [“plugin.gameanalytics”] =

        {

            publisherId = “com.gameanalytics”,

        },

        [“plugin.advertisingId”] =

        {

            publisherId = “com.coronalabs”,

        },

},

android = 

{

googlePlayGamesAppId = “924768734057”,

usesPermissions =

        {

            “android.permission.INTERNET”,

            “android.permission.ACCESS_NETWORK_STATE”,

            “com.android.vending.BILLING”,

            “android.permission.WRITE_EXTERNAL_STORAGE”,

        },

        usesFeatures =

        {

        },

 

},

iphone =

{

plist =

{

– UIApplicationExitsOnSuspend = true, – default is false

CFBundleIconFile = “Icon.png”,

CFBundleIconFiles = {

            “Icon.png”,

            “Icon@2x.png”,

            “Icon-Small-40.png”,

            “Icon-Small-40@2x.png”,

            “Icon-60.png”,

            “Icon-60@2x.png”,

            “Icon-72.png”,

            “Icon-72@2x.png”,

            “Icon-76.png”,

            “Icon-76@2x.png”,

            “Icon-Small-50.png”,

            “Icon-Small-50@2x.png”,

            “Icon-Small.png”,

            “Icon-Small@2x.png”,

            “Icon-Small-40.png”,

            “Icon-Small-40@2x.png”,

         },

UIBackgroundModes = {“remote-notification”},

UIAppFonts = 

                        {

                                “Franklin Gothic Medium Cond.ttf”,

                                “a_ConceptoTitulNrFy.ttf”,

                                “ComixHeavy.ttf”,

                                “Comic Sans MS.ttf”,

                                “Impact.ttf”,

                        },

},

},

}

Hi @dmytrodrach,

I don’t see any reason for the first screenshot, since your code never includes the AdMob plugin. Perhaps you aren’t showing the actual code which generated that screenshot?

Best regards,

Brent

Hi Brent . From documentation (includes the AdMob plugin) :

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

adMob plagin:

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

is it wrong?

Hi @rollerband,

Can you change the “supportedPlatforms” line to include “iphone=true”? I probably need to update the documentation on that point…

[lua]

supportedPlatforms = { iphone=true, android=true }

[/lua]

If this works, please report back so I can proceed with edits.

Thanks,

Brent

Hi Brent, 

To make it clear: Rollerband is my co-worker. 

Nothing is changed, anyway, the same issues with applovin and flurry plugin. We’ve got such problem after last public release. 

The thing is that we have not modified build.settings with this release, but got such troubles.

So, there are still errors with all 3? AdMob, Flurry, and AppLovin?

Yes. Errors in all three  

i try to change supportedPlatforms string

  1. supportedPlatforms = { iphone=true, android=true }

but it did not help 

Two things to try. First try commenting out the supportedPlatform lines. The line is there to really prevent loading the plugin on platforms that it’s not supported on. That is if you’re building for Android, you want to prevent Apple GameCenter from loading. If you’re building for desktop, you want to limit the mobile device plugins. As a test, comment out the supportedPlatform lines on the problem plugins.

Secondly, try building the sample app for that plugin. They can be found at https://github.com/coronalabs

Make sure you can build them successfully, then we can come back to look at your specific use.

Rob

hi Rob. I have build examples  (https://github.com/coronalabs/plugins-sample-applovin  https://github.com/coronalabs/plugins-sample-ads-admob  https://github.com/coronalabs/plugins-source-analytics-flurry) (i use my game ids and do all correctly)These examples do not work. 2 of them I even know why - in AdMob incorrectly initialized plugin build.settings. [“CoronaProvider.ads.admob”] - this is an old example. In Flury build.settings in general do not have the plugin initialization strings. InAppLovin - Initialization as we do, and it does not work on IOS .  vaNuInR7y30.jpg 369KlsgduOo.jpg EGZjc5ky1nk.jpg

Hi Rob. We have good news .I commenting out the supportedPlatform lines at plagins whith errors . Application built without errors

Hi Rob. We have bad news : as i say we remove suportedPlatforms string and get back ADMob but we lost Vungle.Vungle did not work whithout this string. (plugin dont show errors, but dont show any ads). Both ads use this plugin but suportedPlatforms string breaks one of them. (This problem just for iOs)

plugins =
 {

   [“CoronaProvider.ads.vungle”] =
 {
    publisherId = “com.vungle”
 },
 [“plugin.google.play.services”] =
  {
    publisherId = “com.coronalabs”,
    supportedPlatforms = { iphone=true, android=true } — this string need to be here for Vungle and dont for adMob
  },
}, 

Fed

The admob example is for the old admob V1 plugin. Admob V2 is the google.play.services plugin.

Vungle requires the google.play.services plugin loaded.

Rob

Hi Rob. T.Y.

I know it. But how it can help me? The question is, how can I use adMob plagin, and Vungle plagin together (like before the last corona publick release)

Fed

The last public release had nothing to do with plugins. Can you post your complete build.settings please?  Make sure to use the <> button above and copy/paste your build.settings.

Thanks

Rob

settings = { orientation = { default = "landscapeRight", supported = { "landscapeRight", "landscapeLeft" }, }, plugins = { ["plugin.google.iap.v3"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true }, }, ["plugin.applovin"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true, appletvos=true }, }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true }, }, ["CoronaProvider.analytics.flurry"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true }, }, ["plugin.notifications"] = { publisherId = "com.coronalabs" }, ["CoronaProvider.gameNetwork.google"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true }, }, ["CoronaProvider.gameNetwork.apple"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, ["iphone-sim"]=true }, }, ["plugin.OneSignal"] = { publisherId = "com.onesignal", }, ["CoronaProvider.native.popup.social"] = { publisherId = "com.coronalabs", }, ["CoronaProvider.ads.vungle"] = { publisherId = "com.vungle", }, ["plugin.gameanalytics"] = { publisherId = "com.gameanalytics", }, ["plugin.advertisingId"] = { publisherId = "com.coronalabs", }, }, android = { googlePlayGamesAppId = "924768734057", usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", "com.android.vending.BILLING", "android.permission.WRITE\_EXTERNAL\_STORAGE", }, usesFeatures = { }, }, iphone = { plist = { CFBundleIconFile = "Icon.png", CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-Small-40.png", "Icon-Small-40@2x.png", "Icon-60.png", "Icon-60@2x.png", "Icon-72.png", "Icon-72@2x.png", "Icon-76.png", "Icon-76@2x.png", "Icon-Small-50.png", "Icon-Small-50@2x.png", "Icon-Small.png", "Icon-Small@2x.png", "Icon-Small-40.png", "Icon-Small-40@2x.png", }, UIBackgroundModes = {"remote-notification"}, UIAppFonts = { "Franklin Gothic Medium Cond.ttf", "a\_ConceptoTitulNrFy.ttf", "ComixHeavy.ttf", "Comic Sans MS.ttf", "Impact.ttf", }, }, }, }

Also can I see your config.lua?

Also your post with the screen shots above is very confusing. Your build.settings does not attempt to load the AdMob V1 plugin. You cannot possibly be getting the error that reads: 

The following plugin could not be downloaded:

    com.coronalabs/CoronaProvider.ads.admob

The second error on that screen shot makes it sound like you’re trying to use some Graphics 1.0 features without telling us that you want to use these older methods (which is why I want to see  your config.lua).  These errors are unrelated.

If you’re running the latest Corona public build, there should be a console window that opens automatically. It would be much better for you to copy/paste errors from that window rather than the big long pink dialog box you’re showing. The new console window reads your device’s console long as long as you don’t dismiss the popup that happens after the build is complete. You also have to let Corona install the app on your test device for you.

Rob

-“The second error on that screen shot makes it sound like you’re trying to use some Graphics 1.0 features without telling us that you want to use these older methods (which is why I want to see  your config.lua).  These errors are unrelated.” - this error windows from the examples that you give. i just compile it ) (admob plug in example as you say: “Secondly, try building the sample app for that plugin. They can be found at https://github.com/coronalabs” c. Rob.)

What are you offering? Try to connect the V1 AdMob plugin instead of the adMob V2?

This Build still works correctly on android 

Here my config: 

local HeWe = display.pixelWidth/display.pixelHeight local GoodHeWe = 0 local isRetina = (display.pixelHeight \> 1024 or display.pixelWidth \> 1024) local model = system.getInfo( "model" ) if (HeWe\<0.75) then if (HeWe\<0.59) then GoodHeWe = 0.5625 androidSufix = { ["@56"] = 0.1, } else GoodHeWe = 0.625 androidSufix = { ["@625"] = 0.1, } end else GoodHeWe = 0.75 androidSufix = { } end if (model~="iPhone" and model~="iPad") then application = { license = { google = { key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAjehf6s5k8yZo/FhE/56/7lL49ntjppzHDV5t/JAo01Z+hbRLDPGjsJyN4M7W4Hnx0g37a+QqXRlP3KnM8cniVGJSSkg9r9t2hqebPj9xCzombXffQ4hUuDrL4IIv0L/QBr7eBuLRaopZ/WBxt0kNG8whiaigw8X0Afnb6HML0pSK4sGcB5fvLlmALHtK9uWS4H4KxsAY8TNAJ+fMtdBqUn7TdA4y6iOYOTtAnstWqrr+ti8kivbUc+/QwoqPPRsRdopdVsvQH9Lf4RfN9gH1Akyf4XJPUjacjjOPumFPPOvJetiwQzwrdCs8panlEtUhAVnLW41l25612aSL8irvewIDAQAB", }, }, content = { width = 768,--768 Not Good For Phone 768 1280 height = 1024, scale = "letterBox", fps = 30, imageSuffix = androidSufix }, } else if (isRetina and "iPad" == model) then application = { content = { width = 768, height = 1024, scale = "letterBox", fps = 30, } } elseif (isRetina) then--Iphone5 print("\>Show As Retina and not IPAD") application = { content = { width = 768, height = 1024, scale = "letterBox", fps = 30, imageSuffix = { ["@56"] = 0.83, } } } else print("\>not Retina") application = { content = { width = 768, height = 1024, scale = "letterBox", fps = 30, imageSuffix = { ["@640"] = 0.21, } } } end end

Error from xCode ios simulator to  corona log:

06 05:11:27.293 Runtime Error: Runtime error: module ‘plugin.applovin’ not found:resource (plugin.applovin.lu) does not exist in archive

06 05:14:52.188 *** Terminating app due to uncaught exception ‘Corona Runtime Error’, reason: 'module ‘plugin.applovin’ not found:resource (plugin.applovin.lu) does not exist in archive

Can you zip up your project, and put it up on dropbox and share it with me rob AT coronalabs DOT com.