yes the one located my corona SDK application folder i.e in ads folder
Hi @corona1634,
Can we please hear the Corona build # you’re using, along with the device you’re testing on?
Thanks,
Brent
Device was a galaxy s4.
Corona builds were 2014.2325 and 2014.2359 I believe (not at my machine right now). Both builds behaved the same.
Same problem here…
tested with corona builds #2345 and #2347
my test device Samsung Galaxy Wonder GT-I8150 android version 4.2.2
if i enable admob v2 (plugin.google.play.services), facebook login request hangs device with following console output:
W/dalvikvm( 4402): VFY: unable to resolve static field 5717 (common_google_play_services_install_title) in Lcom/google/android/gms/R$string;
D/dalvikvm( 4402): VFY: replacing opcode 0x60 at 0x004b
W/dalvikvm( 4402): VFY: unable to resolve static field 5713 (common_google_play_services_enable_title) in Lcom/google/android/gms/R$string;
D/dalvikvm( 4402): VFY: replacing opcode 0x60 at 0x0056
W/dalvikvm( 4402): VFY: unable to resolve static field 5728 (common_google_play_services_update_title) in Lcom/google/android/gms/R$string;
D/dalvikvm( 4402): VFY: replacing opcode 0x60 at 0x0061
W/dalvikvm( 4402): VFY: unable to resolve static field 5725 (common_google_play_services_unsupported_title) in Lcom/google/android/gms/R$string;
D/dalvikvm( 4402): VFY: replacing opcode 0x60 at 0x0073
W/dalvikvm( 4402): VFY: unable to resolve static field 5721 (common_google_play_services_network_error_title) in Lcom/google/android/gms/R$string;
D/dalvikvm( 4402): VFY: replacing opcode 0x60 at 0x0085
W/dalvikvm( 4402): VFY: unable to resolve static field 5719 (common_google_play_services_invalid_account_title) in Lcom/google/android/gms/R$string;
D/dalvikvm( 4402): VFY: replacing opcode 0x60 at 0x00af
W/dalvikvm( 4402): VFY: unable to resolve static field 5725 (common_google_play_services_unsupported_title) in Lcom/google/android/gms/R$string;
D/dalvikvm( 4402): VFY: replacing opcode 0x60 at 0x00ce
W/dalvikvm( 4402): VFY: unable to resolve static field 5714 (common_google_play_services_install_button) in Lcom/google/android/gms/R$string;
D/dalvikvm( 4402): VFY: replacing opcode 0x60 at 0x000f
W/dalvikvm( 4402): VFY: unable to resolve static field 5711 (common_google_play_services_enable_button) in Lcom/google/android/gms/R$string;
D/dalvikvm( 4402): VFY: replacing opcode 0x60 at 0x0016
W/dalvikvm( 4402): VFY: unable to resolve static field 5726 (common_google_play_services_update_button) in Lcom/google/android/gms/R$string;
D/dalvikvm( 4402): VFY: replacing opcode 0x60 at 0x001d
W/dalvikvm( 4402): VFY: unable to resolve static field 5722 (common_google_play_services_unknown_issue) in Lcom/google/android/gms/R$string;
D/dalvikvm( 4402): VFY: replacing opcode 0x60 at 0x0007
W/dalvikvm( 4402): VFY: unable to resolve static field 5716 (common_google_play_services_install_text_tablet) in Lcom/google/android/gms/R$string;
D/dalvikvm( 4402): VFY: replacing opcode 0x60 at 0x0018
W/dalvikvm( 4402): VFY: unable to resolve static field 5715 (common_google_play_services_install_text_phone) in Lcom/google/android/gms/R$string;
D/dalvikvm( 4402): VFY: replacing opcode 0x60 at 0x0038
W/dalvikvm( 4402): VFY: unable to resolve static field 5712 (common_google_play_services_enable_text) in Lcom/google/android/gms/R$string;
D/dalvikvm( 4402): VFY: replacing opcode 0x60 at 0x003f
W/dalvikvm( 4402): VFY: unable to resolve static field 5727 (common_google_play_services_update_text) in Lcom/google/android/gms/R$string;
D/dalvikvm( 4402): VFY: replacing opcode 0x60 at 0x0046
W/dalvikvm( 4402): VFY: unable to resolve static field 5724 (common_google_play_services_unsupported_text) in Lcom/google/android/gms/R$string;
D/dalvikvm( 4402): VFY: replacing opcode 0x60 at 0x0066
W/dalvikvm( 4402): VFY: unable to resolve static field 5720 (common_google_play_services_network_error_text) in Lcom/google/android/gms/R$string;
D/dalvikvm( 4402): VFY: replacing opcode 0x60 at 0x006d
W/dalvikvm( 4402): VFY: unable to resolve static field 5718 (common_google_play_services_invalid_account_text) in Lcom/google/android/gms/R$string;
D/dalvikvm( 4402): VFY: replacing opcode 0x60 at 0x0074
W/dalvikvm( 4402): VFY: unable to resolve static field 5723 (common_google_play_services_unsupported_date_text) in Lcom/google/android/gms/R$string;
D/dalvikvm( 4402): VFY: replacing opcode 0x60 at 0x007b
W/dalvikvm( 4402): VFY: unable to resolve static field 5722 (common_google_play_services_unknown_issue) in Lcom/google/android/gms/R$string;
D/dalvikvm( 4402): VFY: replacing opcode 0x60 at 0x000c
E/GooglePlayServicesUtil( 4402): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
E/GooglePlayServicesUtil( 4402): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
I/ActivityManager( 435): Start proc com.google.android.gms for service com.google.android.gms/.ads.identifier.service.AdvertisingIdService: pid=4487 uid=10036 gids={50036, 3003, 1007, 1028, 1015, 1006, 3002, 3001, 2001, 3006}
I/MultiDex( 4487): install
I/MultiDex( 4487): MultiDexExtractor.load(/data/app/com.google.android.gms-1.apk, false)
I/MultiDex( 4487): loading existing secondary dex files
I/MultiDex( 4487): load found 1 secondary dex files
I/MultiDex( 4487): install done
I/ProviderInstaller( 4487): Insert disabled by gate ‘gms:security:enable_conscrypt_in_gms_application’
D/GCM ( 957): GcmService start Intent { act=com.google.android.gms.INITIALIZE flg=0x10 pkg=com.google.android.gms cmp=com.google.android.gms/.gcm.GcmService } com.google.android.gms.INITIALIZE
E/dalvikvm( 4487): Could not find class ‘android.app.AppOpsManager’, referenced from method cbg.a
W/dalvikvm( 4487): VFY: unable to resolve check-cast 304 (Landroid/app/AppOpsManager;) in Lcbg;
D/dalvikvm( 4487): VFY: replacing opcode 0x1f at 0x000e
I/dalvikvm( 4487): Could not find method android.app.admin.DevicePolicyManager.isDeviceOwnerApp, referenced from method com.google.android.gms.init.InitializeIntentService.onHandleIntent
W/dalvikvm( 4487): VFY: unable to resolve virtual method 1415: Landroid/app/admin/DevicePolicyManager;.isDeviceOwnerApp (Ljava/lang/String;)Z
D/dalvikvm( 4487): VFY: replacing opcode 0x6e at 0x00e2
D/dalvikvm( 677): GC_CONCURRENT freed 392K, 65% free 2661K/7584K, paused 25ms+11ms, total 74ms
build #2264 (the first build containing admob v2) is working fine by the way.
CubeU30GT and cheapie running Android, same problem.
interesting thing is it worked fine this morning, tried rebuilding it to run on my Cube and it now crashes with the same problem.
This is not Facebook ; this is the Admob V2 Plugin
Bizarrely both have started working again, don’t know if it is a Google problem maybe ?
Can someone please file a bug report on this? Make sure to include a working build.settings and config.lua. Please post the bug report number you get in the email back here for reference.
Thanks
Rob
I cant even add any ads in my game.Because i get this error
Runtime error
F:\Android app development\The Red Airship\main.lua:4: module ‘ads’ not
found:resource (ads.lu) does not exist in archive
no field package.preload[‘ads’]
no file ‘F:\Android app development\The Red Airship\ads.lua’
no file 'G:\Program FiRuntime error: F:\Android app development\The Red
Airship\main.lua:4: module ‘ads’ not found:resource (ads.lu) does not exist in a
rchive
no field package.preload[‘ads’]
no file ‘F:\Android app development\The Red Airship\ads.lua’
and my main.lua contains:
display.setStatusBar( display.HiddenStatusBar )
screenW, screenH, halfW, halfH = display.contentWidth, display.contentHeight, display.contentWidth*0.5, display.contentHeight*0.5
local storyboard = require “storyboard”
local ads = require( “ads” )
local function adListener( event )
if ( event.isError ) then
Failed to receive an ad
end
end
ads.init( “inneractive”, “CrosshairStudios_BattleAirship_Android”, adListener )
storyboard.gotoScene ( “menu”, { effect = “fade”} )
please help me guys
The only error I saw in your code was “Failed to receive an ad” isn’t valid lua, so it errors. Perhaps you meant for that to be:
print(“Failed to receive an ad”)
What version of Corona SDK are you using?
Can you post your build.settings?
Rob
I rectified that print(“Failed to receive an ad”)…still i get the same error
main.lua file
display.setStatusBar( display.HiddenStatusBar )
screenW, screenH, halfW, halfH = display.contentWidth, display.contentHeight, display.contentWidth*0.5, display.contentHeight*0.5
local storyboard = require “storyboard”
local ads = require( “ads” )
local function adListener( event )
if ( event.isError ) then
print(" Failed to receive an ad")
end
end
ads.init( “inneractive”, “CrosshairStudios_BattleAirship_Android”, adListener )
storyboard.gotoScene ( “menu”, { effect = “fade”} )
build.settings file :
settings =
{
orientation =
{
default = “portrait”,
supported = { “portrait” }
},
android =
{
usesPermissions =
{
“android.permission.INTERNET”,
“android.permission.ACCESS_NETWORK_STATE”,
“android.permission.READ_PHONE_STATE”,
},
},
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.inneractive”] =
{
– required
publisherId = “com.inner-active”,
},
},
}
ads library isnt supported in starter package??? please help Rob in solving this problem…
It’s supposed to be like that.
Corona have people working for them, like Rob M. and others here, developers, full support people for commercial companies, admin staff, probably loans off initial backers. If you look at the Forums Rob and a couple of others post a *lot* and try to answer most questions. I’m assuming they are paid employees, unlike people like me who answer questions occasionally who have no connection with Corona other than using it of course :). Someone has to pay their salaries.
If they gave away everything with ‘starter’, they wouldn’t make any money. So you get starter for free, you decide you like Corona, then you can go to Basic which is $16/£10 a month, which is about the price of a cheeseburger. This allows you Ads and iAP (I think). If you shell out $50 / month, which isn’t peanuts like Basic, but isn’t a huge amount for complete development system, then you get pretty much everything (Pro) except local builds and ‘proper’ support (e.g. someone you can ring up and ask directly, the forum support is actually excellent but sometimes as a professional you need 1:1 stuff).
There are revenue limits but they are pretty silly ; if you were turning over $500k a year on Corona apps provision of full support etc. then shelling out $1-$2k p.a. on the tool you’re using is a no-brainer.
http://coronalabs.com/products/corona-sdk/faqs/
Realistically, it’s pretty cheap. You can play with it for nothing at all up to the level of publishing stuff on the Apple/Google stores (which will cost you $125 pa anyway !) . You can be an occasional developer for $16 a month, a semi professional for $50 a month and a professional developer for $100 a month. I’ve been coding for years on various platforms. This is cheap. In a nice way 
PS: I did often wonder if Basic should have something like access to 2.0 Gfx in development but not build for it, might be a good way of moving people onto Pro ?
But ads library is available in corona starter package… It is given here
http://docs.coronalabs.com/plugin/ads-inneractive/index.html
The FAQ doesn’t actually say, it refers to ‘inApp purchases’ (no) and ‘plugins’ (limited).
The main screen says (of Basic) “Build your games or apps in record time and start monetizing with in-app purchases or ads” on the main screen, which suggests Starter does not support Ads.
It is also a logical deduction ; if you look at the comparison between starter and basic, then there is no other difference other than iAPs. Corona really want, and to be fair, deserve, their ‘cut’ if someone is using their product to make money.
What do you want to say exactly…that i cant use ads in my games???
I don’t know for sure ; I’m sure Rob or Brent or another staff member will clarify it.
It is not promising that require(“ads”) not working. What happens if you reduce it just to
require("ads")
? Do you still get the module not found error ? This is pretty integral. In Corona, it shouldn’t crash. It suggests it’s not there 
Thats what i m saying…its not there…ads library isnt there in my corona starter package…
Well, that’s either because your install is broken or you aren’t supposed to have it, I wouldn’t know which.
I think you will get a definitive answer off one of the Corona staff 
Ads are available to all tiers, so something else is going wrong here. Which Corona sample project did you test that is yielding the error? The one located in your local Corona SDK application folder?
Brent