appLovin returning a nil on load of plugin

App runs clean in the simulator with or without the plugin and clean without the plugin on the device.

On the device, it crashes right after the splash screen with: “Unfortunately, <app> has stopped.”

C:\WINDOWS\system32>adb logcat Corona:v *:s

--------- beginning of main

--------- beginning of system

V/Corona  (27096): > Class.forName: network.LuaLoader

V/Corona  (27096): < Class.forName: network.LuaLoader

V/Corona  (27096): Loading via reflection: network.LuaLoader

I/Corona  (27096): Platform: DL718M / ARM Neon / 5.1 / Mali-450 MP / OpenGL ES 2.0 / 2016.2906 / English | US | en_US | en

V/Corona  (27096): > Class.forName: plugin.applovin.LuaLoader

V/Corona  (27096): < Class.forName: plugin.applovin.LuaLoader

V/Corona  (27096): Loading via reflection: plugin.applovin.LuaLoader

I/Corona  (27096): nil

E/Corona  (27096): ERROR: unexpected end of stream

V/Corona  (27157): > Class.forName: network.LuaLoader

V/Corona  (27157): < Class.forName: network.LuaLoader

V/Corona  (27157): Loading via reflection: network.LuaLoader

I/Corona  (27157): Platform: DL718M / ARM Neon / 5.1 / Mali-450 MP / OpenGL ES 2.0 / 2016.2906 / English | US | en_US | en

V/Corona  (27157): > Class.forName: plugin.applovin.LuaLoader

V/Corona  (27157): < Class.forName: plugin.applovin.LuaLoader

V/Corona  (27157): Loading via reflection: plugin.applovin.LuaLoader

I/Corona  (27157): nil

^C


The build follows:

– Supported values for orientation:

– portrait, portraitUpsideDown, landscapeLeft, landscapeRight

settings = 

{

orientation = 

{

default = “landscapeLeft”, 

supported = { “landscapeLeft”, “landscapeRight” },

},

android =

    {

    versionCode = “11”,

        usesPermissions =

        { 

            “android.permission.INTERNET”,

            “android.permission.ACCESS_NETWORK_STATE”,

            “android.permission.WRITE_EXTERNAL_STORAGE”

        },

    },

iphone =

{

plist =

{

UIStatusBarHidden=true,

UIViewControllerBasedStatusBarAppearance = false,

UIApplicationExitsOnSuspend = false,

UIPrerenderedIcon = true, 

CFBundleIconFile = “Icon.png”,

CFBundleIconFiles = {

“Icon.png”,

       “Icon@2x.png”,

       “Icon@3x.png”,

       “Icon-40.png”,

       “Icon-40@2x.png”,

       “Icon-40@3x.png”,

       “Icon-60.png”,

       “Icon-60@2x.png”,

       “Icon-60@3x.png”,

       “Icon-64.png”,

       “Icon-72.png”,

       “Icon-72@2x.png”,

       “Icon-76.png”,

       “Icon-76@2x.png”,

       “Icon-Small-40.png”,

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

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

       “Icon-Small-50.png”,

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

       “Icon-Small.png”,

       “Icon-Small@2x.png”,

       “Icon-Small@3x.png”

},

            UILaunchImages = {

                {  – iPhone 4 Portrait

                    [“UILaunchImageMinimumOSVersion”] = “7.0”,

                    [“UILaunchImageName”] = “Default”,

                    [“UILaunchImageOrientation”] = “Portrait”,

                    [“UILaunchImageSize”] = “{320, 480}”

                },

                {  – iPhone 4 LandscapeLeft

                    [“UILaunchImageMinimumOSVersion”] = “7.0”,

                    [“UILaunchImageName”] = “Default”,

                    [“UILaunchImageOrientation”] = “LandscapeLeft”,

                    [“UILaunchImageSize”] = “{320, 480}”

                },

                {  – iPhone 4 LandscapeRight

                    [“UILaunchImageMinimumOSVersion”] = “7.0”,

                    [“UILaunchImageName”] = “Default”,

                    [“UILaunchImageOrientation”] = “LandscapeRight”,

                    [“UILaunchImageSize”] = “{320, 480}”

                },

                {  – iPhone 5 Portrait

                    [“UILaunchImageMinimumOSVersion”] = “7.0”,

                    [“UILaunchImageName”] = “Default-568h”,

                    [“UILaunchImageOrientation”] = “Portrait”,

                    [“UILaunchImageSize”] = “{320, 568}”

                },

                {  – iPhone 5 LandscapeLeft

                    [“UILaunchImageMinimumOSVersion”] = “7.0”,

                    [“UILaunchImageName”] = “Default-568h”,

                    [“UILaunchImageOrientation”] = “LandscapeLeft”,

                    [“UILaunchImageSize”] = “{320, 568}”

                },

                {  – iPhone 5 LandscapeRight

                    [“UILaunchImageMinimumOSVersion”] = “7.0”,

                    [“UILaunchImageName”] = “Default-568h”,

                    [“UILaunchImageOrientation”] = “LandscapeRight”,

                    [“UILaunchImageSize”] = “{320, 568}”

                },

–                {  – iPad Portrait

–                    [“UILaunchImageMinimumOSVersion”] = “7.0”,

–                    [“UILaunchImageName”] = “Default-Portrait”,

–                    [“UILaunchImageOrientation”] = “Portrait”,

–                    [“UILaunchImageSize”] = “{768, 1024}”

–                },

–                {  – iPad LandscapeLeft

–                    [“UILaunchImageMinimumOSVersion”] = “7.0”,

–                    [“UILaunchImageName”] = “Default-Landscape”,

–                    [“UILaunchImageOrientation”] = “LandscapeLeft”,

–                    [“UILaunchImageSize”] = “{768, 1024}”

–                },

–                {  – iPad LandscapeRight

–                    [“UILaunchImageMinimumOSVersion”] = “7.0”,

–                    [“UILaunchImageName”] = “Default-Landscape”,

–                    [“UILaunchImageOrientation”] = “LandscapeRight”,

–                    [“UILaunchImageSize”] = “{768, 1024}”

–                },

                {  – iPhone 6 Portrait

                    [“UILaunchImageMinimumOSVersion”] = “8.0”,

                    [“UILaunchImageName”] = “Default-667h”,

                    [“UILaunchImageOrientation”] = “Portrait”,

                    [“UILaunchImageSize”] = “{375, 667}”

                },

                {  – iPhone 6 LandscapeLeft

                    [“UILaunchImageMinimumOSVersion”] = “8.0”,

                    [“UILaunchImageName”] = “Default-667h”,

                    [“UILaunchImageOrientation”] = “LandscapeLeft”,

                    [“UILaunchImageSize”] = “{375, 667}”

                },

                {  – iPhone 6 LandscapeRight

                    [“UILaunchImageMinimumOSVersion”] = “8.0”,

                    [“UILaunchImageName”] = “Default-667h”,

                    [“UILaunchImageOrientation”] = “LandscapeRight”,

                    [“UILaunchImageSize”] = “{375, 667}”

                },

                {  – iPhone 6 Plus Portrait

                    [“UILaunchImageMinimumOSVersion”] = “8.0”,

                    [“UILaunchImageName”] = “Default-736h”,

                    [“UILaunchImageOrientation”] = “Portrait”,

                    [“UILaunchImageSize”] = “{414, 736}”

                },

                {  – iPhone 6 Plus LandscapeLeft

                    [“UILaunchImageMinimumOSVersion”] = “8.0”,

                    [“UILaunchImageName”] = “Default-Landscape-736h”,

                    [“UILaunchImageOrientation”] = “LandscapeLeft”,

                    [“UILaunchImageSize”] = “{414, 736}”

                },

                {  – iPhone 6 Plus LandscapeRight

                    [“UILaunchImageMinimumOSVersion”] = “8.0”,

                    [“UILaunchImageName”] = “Default-Landscape-736h”,

                    [“UILaunchImageOrientation”] = “LandscapeRight”,

                    [“UILaunchImageSize”] = “{414, 736}”

                },

–                {  – iPad Pro Portrait

–                    [“UILaunchImageMinimumOSVersion”] = “9.0”,

–                    [“UILaunchImageName”] = “Default-Portrait-1366”,

–                    [“UILaunchImageOrientation”] = “Portrait”,

–                    [“UILaunchImageSize”] = “{1024, 1366}”

–                },

–                {  – iPad Pro Landscape Right

–                    [“UILaunchImageMinimumOSVersion”] = “9.0”,

–                    [“UILaunchImageName”] = “Default-Landscape-1366”,

–                    [“UILaunchImageOrientation”] = “LandscapeRight”,

–                    [“UILaunchImageSize”] = “{1024, 1366}”

–                },

–                {  – iPad Pro Landscape Left

–                    [“UILaunchImageMinimumOSVersion”] = “9.0”,

–                    [“UILaunchImageName”] = “Default-Landscape-1366”,

–                    [“UILaunchImageOrientation”] = “LandscapeLeft”,

–                    [“UILaunchImageSize”] = “{1024, 1366}”

–                },

            },

},

},

    plugins =

        {

            [“plugin.applovin”] =

            {

                publisherId = “com.coronalabs”,

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

            },

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

            {

                publisherId = “com.coronalabs”,

                supportedPlatforms = { android=true }

            },

        },

}

any suggestions?

Thanks

Dave

Hi,

Can you send a small basic app where this error is reproducible to support@coronalabs.com? This could just contain main.lua, build.settings and any assets required to build the app.

We will evaluate this and get back you with an reply.

Thanks,

Hi, ParanJay1

Spent the day creating the “small basic app”.  Started with a small part of the existing project by commenting out most, and walked through rebuilding of my whole app, removing a commented out part at a time, looking for the point that it would break.  Never happened.  However, I noticed almost from the beginning this morning, that the versions built today all were a little more than 21mb larger than the builds from yesterday.  I am now working with the same code that I was using when I posted the problem.  Could it be that there was a problem with the plugin actually getting loaded into the apk?  Nothing else has changed.

In any case - thanks for the response.

Dave

Hi,

Can you send a small basic app where this error is reproducible to support@coronalabs.com? This could just contain main.lua, build.settings and any assets required to build the app.

We will evaluate this and get back you with an reply.

Thanks,

Hi, ParanJay1

Spent the day creating the “small basic app”.  Started with a small part of the existing project by commenting out most, and walked through rebuilding of my whole app, removing a commented out part at a time, looking for the point that it would break.  Never happened.  However, I noticed almost from the beginning this morning, that the versions built today all were a little more than 21mb larger than the builds from yesterday.  I am now working with the same code that I was using when I posted the problem.  Could it be that there was a problem with the plugin actually getting loaded into the apk?  Nothing else has changed.

In any case - thanks for the response.

Dave