In the file I was given it says to download build 1089, I already had build 1094 installed though is that okay or do I need build 1089? I can’t get the admob example to work on any of my devices and this is the only difference I can see.
Nevermind I just downgraded to 1089 and the admob sample isn’t working on either build. I keep getting the following
errors in logcat, can anyone point me in the direction of what to do? I see others have admob working it seems so it must be something I’m doing wrong?
V/Corona(7971): \> Class.forName: network.LuaLoader V/Corona(7971): \< Class.forName: network.LuaLoader V/Corona(7971): Loading via reflection: network.LuaLoader V/Corona(7971): \> Class.forName: CoronaProvider.ads.admob.LuaLoader V/Corona(7971): Loading plugins: CoronaProvider.ads.admob.LuaLoader V/Corona(7971): \> classLoader.LoadClass: CoronaProvider.ads.admob.LuaLoader. V/Corona(7971): WARNING: Could not load 'LuaLoader' V/Corona(7971): Could not find class (CoronaProvider.ads.admob.LuaLoader) via reflection: CoronaProvider.ads.admob.LuaLoader V/Corona(7971): or in file (/data/data/com.admob.leetcom/cache/.system/resources/plugins.dex): CoronaProvider.ads.admob.LuaLoader in loader dalvik.system.DexClassLoader@2b07cf80 I/Corona(7971): Runtime error I/Corona(7971): ERROR: Could not load provider (admob) due to the following reason: module 'CoronaProvider.ads.admob' not found:resource (CoronaProvider.ads.admob.lu) does not exist in archive I/Corona(7971): no field package.preload['CoronaProvider.ads.admob'] I/Corona(7971): no file '(null)/CoronaProvider.ads.admob.lua' I/Corona(7971): no file '(null)/CoronaProvider.ads.admob.lua' I/Corona(7971): no file '/data/data/com.admob.leetcom/lib/libCoronaProvider.ads.admob.so' I/Corona(7971): no file './CoronaProvider.ads.admob.so' I/Corona(7971): no file '(null)/CoronaProvider.ads.admob.so' I/Corona(7971): no file '/data/data/com.admob.leetcom/lib/libCoronaProvider.so' I/Corona(7971): no file './CoronaProvider.so' I/Corona(7971): no file '(null)/CoronaProvider.so'. I/Corona(7971): stack traceback: I/Corona(7971): [C]: ? I/Corona(7971): [C]: in function 'assert' I/Corona(7971): ?: in function 'requireProvider' I/Corona(7971): ?: in function 'setCurrentProvider' I/Corona(7971): ?: in function 'init' I/Corona(7971): ?: in main chunk
It looks like the plugin doesn’t even get bundled in — does your build.settings contain a “plugins” section like in the following?
settings = { orientation = { default = "portrait", supported = { "portrait","landscapeLeft" } }, iphone = { plist = { CFBundleIconFile = "Icon.png", CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-72.png", }, }, }, plugins = { -- key is the name passed to Lua's 'require()' ["CoronaProvider.ads.admob"] = { -- required publisherId = "com.coronalabs", }, }, }
And yes, you can use the latest 1095.
This is my complete build.settings
-- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight settings = { plugins = { ["CoronaProvider.ads.admob"] = { -- required publisherId = "com.coronalabs", }, }, orientation = { default = "landscapeRight", supported = { "landscapeRight", "landscapeRight", } }, iphone = { plist = { UIStatusBarHidden = false, UIPrerenderedIcon = true, -- set to false for "shine" overlay --UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend } }, -- Android permissions androidPermissions = { "android.permission.INTERNET", "com.android.vending.BILLING", "android.permission.INTERNET", "android.permission.ACCESS\_WIFI\_STATE", "android.permission.READ\_PHONE\_STATE", "android.permission.ACCESS\_NETWORK\_STATE", }, }
Can someone confirm that my build.settings file looks correct? I still can’t get admob loading without it crashing my app =/
Woohoo! I just installed the latest build and everything is working fine now. I didn’t change any code or anything, just installed it, built it and boom it worked.
Glad you resolved it. I was just about to say, try the latest build
Is there anyway to resize an admob ad? On all my other non corona apps that use admob if the ad wont stretch full screen. It will keep it’s dimensions and stay at that. With corona the ad is stretching the full screen and it’s really thin. The CTR on the banner will be super low.
Nevermind I just downgraded to 1089 and the admob sample isn’t working on either build. I keep getting the following
errors in logcat, can anyone point me in the direction of what to do? I see others have admob working it seems so it must be something I’m doing wrong?
V/Corona(7971): \> Class.forName: network.LuaLoader V/Corona(7971): \< Class.forName: network.LuaLoader V/Corona(7971): Loading via reflection: network.LuaLoader V/Corona(7971): \> Class.forName: CoronaProvider.ads.admob.LuaLoader V/Corona(7971): Loading plugins: CoronaProvider.ads.admob.LuaLoader V/Corona(7971): \> classLoader.LoadClass: CoronaProvider.ads.admob.LuaLoader. V/Corona(7971): WARNING: Could not load 'LuaLoader' V/Corona(7971): Could not find class (CoronaProvider.ads.admob.LuaLoader) via reflection: CoronaProvider.ads.admob.LuaLoader V/Corona(7971): or in file (/data/data/com.admob.leetcom/cache/.system/resources/plugins.dex): CoronaProvider.ads.admob.LuaLoader in loader dalvik.system.DexClassLoader@2b07cf80 I/Corona(7971): Runtime error I/Corona(7971): ERROR: Could not load provider (admob) due to the following reason: module 'CoronaProvider.ads.admob' not found:resource (CoronaProvider.ads.admob.lu) does not exist in archive I/Corona(7971): no field package.preload['CoronaProvider.ads.admob'] I/Corona(7971): no file '(null)/CoronaProvider.ads.admob.lua' I/Corona(7971): no file '(null)/CoronaProvider.ads.admob.lua' I/Corona(7971): no file '/data/data/com.admob.leetcom/lib/libCoronaProvider.ads.admob.so' I/Corona(7971): no file './CoronaProvider.ads.admob.so' I/Corona(7971): no file '(null)/CoronaProvider.ads.admob.so' I/Corona(7971): no file '/data/data/com.admob.leetcom/lib/libCoronaProvider.so' I/Corona(7971): no file './CoronaProvider.so' I/Corona(7971): no file '(null)/CoronaProvider.so'. I/Corona(7971): stack traceback: I/Corona(7971): [C]: ? I/Corona(7971): [C]: in function 'assert' I/Corona(7971): ?: in function 'requireProvider' I/Corona(7971): ?: in function 'setCurrentProvider' I/Corona(7971): ?: in function 'init' I/Corona(7971): ?: in main chunk
It looks like the plugin doesn’t even get bundled in — does your build.settings contain a “plugins” section like in the following?
settings = { orientation = { default = "portrait", supported = { "portrait","landscapeLeft" } }, iphone = { plist = { CFBundleIconFile = "Icon.png", CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-72.png", }, }, }, plugins = { -- key is the name passed to Lua's 'require()' ["CoronaProvider.ads.admob"] = { -- required publisherId = "com.coronalabs", }, }, }
And yes, you can use the latest 1095.
This is my complete build.settings
-- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight settings = { plugins = { ["CoronaProvider.ads.admob"] = { -- required publisherId = "com.coronalabs", }, }, orientation = { default = "landscapeRight", supported = { "landscapeRight", "landscapeRight", } }, iphone = { plist = { UIStatusBarHidden = false, UIPrerenderedIcon = true, -- set to false for "shine" overlay --UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend } }, -- Android permissions androidPermissions = { "android.permission.INTERNET", "com.android.vending.BILLING", "android.permission.INTERNET", "android.permission.ACCESS\_WIFI\_STATE", "android.permission.READ\_PHONE\_STATE", "android.permission.ACCESS\_NETWORK\_STATE", }, }
Can someone confirm that my build.settings file looks correct? I still can’t get admob loading without it crashing my app =/
Woohoo! I just installed the latest build and everything is working fine now. I didn’t change any code or anything, just installed it, built it and boom it worked.
Glad you resolved it. I was just about to say, try the latest build
Is there anyway to resize an admob ad? On all my other non corona apps that use admob if the ad wont stretch full screen. It will keep it’s dimensions and stay at that. With corona the ad is stretching the full screen and it’s really thin. The CTR on the banner will be super low.