application stopps plugin? adsIntersitial.load? crazy error

hi my application stops when i want start on a samsung galaxy s5.

This error is very crazy.

When i exclude adsIntersitial.load() the app works with the folowing build.settings. Why?

and when i exclude in the folowing code CoronaProvider.native.popup.social and plugin.google.iap.v3 in build.setting the App works with adsIntersitial.load(), too. This is very crazy. I am desperate.

settings = { orientation = { default = "portrait", supported = { "portrait", } }, plugins = { ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=false, android=true } }, ["CoronaProvider.native.popup.social"] = { -- required publisherId = "com.coronalabs", }, ["plugin.google.iap.v3"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true } } }, android = { usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", "com.android.vending.BILLING", }, }, }

Slow down, first what ad provider are you try to using (my guess is admob)? Also can you show us how your code looks?

yes it is admob

this is the code. It is not the original code. It is a sample but the problem is the same.

-- hide the status bar display.setStatusBar( display.HiddenStatusBar ) -- include the Corona "composer" module --local composer = require "composer" -- load menu screen --composer.gotoScene( "menu" ) -- debugger txtDebug = native.newTextField( display.contentWidth \* 0.5, 100, display.contentWidth, 35 ) txtDebug.align = "center" txtDebug:setTextColor( 1, 0.5, 0 ) txtDebug.text = "Ad Debug" -- Adss Implement uidInters = "id" adsInterstitial = require( "ads" ) -- Optional table containing targeting parameters targetingParams = { tagForChildDirectedTreatment = true } -- For button widget local widget = require "widget" -- Function to handle button Banner events -- Function to handle button Interstitial events local function handleButtonIntersEvent( event ) if ( "ended" == event.phase ) then if ( adsInterstitial.isLoaded( "interstitial" ) ) then txtDebug.text = "show Interstitial" print( "Interstitial was pressed and released" ) adsInterstitial.show( "interstitial", { x=0, y=0, targetingOptions=targetingParams} ) else txtDebug.text = "Inters Not Ready Try Load" adsInterstitial.load( "interstitial", { testMode= false } ) end end end local btnInters = widget.newButton{ label="Test Interstitial", labelColor = { default={255}, over={128} }, default="button.png", over="button-over.png", width=154, height=40, onRelease = handleButtonIntersEvent -- event listener function } btnInters.x = display.contentWidth \* 0.5 btnInters.y = display.contentHeight - 250 -- Function to handle Reload Interstitial events local function handleReloadIntersEvent( event ) if ( "ended" == event.phase ) then txtDebug.text = "Re-Load Interstitial" adsInterstitial.load( "interstitial", { testMode= false } ) end end local btnLoadInters = widget.newButton{ label="Reload Interstitial", labelColor = { default={255}, over={128} }, default="button.png", over="button-over.png", width=154, height=40, onRelease = handleReloadIntersEvent -- event listener function } btnLoadInters.x = display.contentWidth \* 0.5 btnLoadInters.y = display.contentHeight - 200 -- Function to handle initialize of Admob local function adInterstitialListener( event ) if ( event.isError ) then -- Failed to receive an ad print( "Error init Interstitial " + event.isError ) txtDebug.text = "Error init Interstitial " + event.isError end end -- Call initialize of Admob adsInterstitial.init( "admob", uidInters, adInterstitialListener ) adsInterstitial.load( "interstitial", { testMode=false } )

Can you paste the backtrace from adb logcat?

ok i would do it but it doesnt work.

i instaled android sdk.

Go to adb with cmd.

write: adb logcat Corona:v *:s

now there is written -waiting for device-

i build the app and drag it on my phone. Then i install the app and start it.

But in the cmd nothing happend.

What i am doing wrong?

ok solve the problem. the driver were not being correct installed.

Now here is the adb logcat. But i cant do anything with this

http://www.bilder-upload.eu/show.php?file=48ca57-1470356021.png

There really isn’t any error message in the screen shot you posted.  Run “adb logcat” without any additional parameters. You need to look for errors from other activities.

Rob

Slow down, first what ad provider are you try to using (my guess is admob)? Also can you show us how your code looks?

yes it is admob

this is the code. It is not the original code. It is a sample but the problem is the same.

-- hide the status bar display.setStatusBar( display.HiddenStatusBar ) -- include the Corona "composer" module --local composer = require "composer" -- load menu screen --composer.gotoScene( "menu" ) -- debugger txtDebug = native.newTextField( display.contentWidth \* 0.5, 100, display.contentWidth, 35 ) txtDebug.align = "center" txtDebug:setTextColor( 1, 0.5, 0 ) txtDebug.text = "Ad Debug" -- Adss Implement uidInters = "id" adsInterstitial = require( "ads" ) -- Optional table containing targeting parameters targetingParams = { tagForChildDirectedTreatment = true } -- For button widget local widget = require "widget" -- Function to handle button Banner events -- Function to handle button Interstitial events local function handleButtonIntersEvent( event ) if ( "ended" == event.phase ) then if ( adsInterstitial.isLoaded( "interstitial" ) ) then txtDebug.text = "show Interstitial" print( "Interstitial was pressed and released" ) adsInterstitial.show( "interstitial", { x=0, y=0, targetingOptions=targetingParams} ) else txtDebug.text = "Inters Not Ready Try Load" adsInterstitial.load( "interstitial", { testMode= false } ) end end end local btnInters = widget.newButton{ label="Test Interstitial", labelColor = { default={255}, over={128} }, default="button.png", over="button-over.png", width=154, height=40, onRelease = handleButtonIntersEvent -- event listener function } btnInters.x = display.contentWidth \* 0.5 btnInters.y = display.contentHeight - 250 -- Function to handle Reload Interstitial events local function handleReloadIntersEvent( event ) if ( "ended" == event.phase ) then txtDebug.text = "Re-Load Interstitial" adsInterstitial.load( "interstitial", { testMode= false } ) end end local btnLoadInters = widget.newButton{ label="Reload Interstitial", labelColor = { default={255}, over={128} }, default="button.png", over="button-over.png", width=154, height=40, onRelease = handleReloadIntersEvent -- event listener function } btnLoadInters.x = display.contentWidth \* 0.5 btnLoadInters.y = display.contentHeight - 200 -- Function to handle initialize of Admob local function adInterstitialListener( event ) if ( event.isError ) then -- Failed to receive an ad print( "Error init Interstitial " + event.isError ) txtDebug.text = "Error init Interstitial " + event.isError end end -- Call initialize of Admob adsInterstitial.init( "admob", uidInters, adInterstitialListener ) adsInterstitial.load( "interstitial", { testMode=false } )

Can you paste the backtrace from adb logcat?

ok i would do it but it doesnt work.

i instaled android sdk.

Go to adb with cmd.

write: adb logcat Corona:v *:s

now there is written -waiting for device-

i build the app and drag it on my phone. Then i install the app and start it.

But in the cmd nothing happend.

What i am doing wrong?

ok solve the problem. the driver were not being correct installed.

Now here is the adb logcat. But i cant do anything with this

http://www.bilder-upload.eu/show.php?file=48ca57-1470356021.png

There really isn’t any error message in the screen shot you posted.  Run “adb logcat” without any additional parameters. You need to look for errors from other activities.

Rob