Game crashes on launch with Appodeal plugin in corona 2019.3517

Hi, I wanted to build a game in the latest version of Corona to support Android App Bundles. The build is going, but the game does not work on the device and immediately crashes with an error:

2019-08-17 01:40:15.625 2160-2160/? I/Timeline: Timeline: Activity\_launch\_request time:154524652 intent:Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.Studio17.drawrider/com.ansca.corona.CoronaActivity bnds=[829,101][997,269] (has extras) } 2019-08-17 01:40:15.628 1386-2159/? I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.Studio17.drawrider/com.ansca.corona.CoronaActivity bnds=[829,101][997,269] (has extras)} from uid 10028 2019-08-17 01:40:15.645 1386-2159/? W/WindowManager: Attempted to set focus to non-existing app token: Token{6fc5405 ActivityRecord{be77c5a u0 com.Studio17.drawrider/com.ansca.corona.CoronaActivity t1239}} 2019-08-17 01:40:15.647 1386-2159/? E/ActivityTrigger: activityStartTrigger: not whiteListedcom.Studio17.drawrider/com.ansca.corona.CoronaActivity/109 2019-08-17 01:40:15.648 1386-2159/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.Studio17.drawrider/com.ansca.corona.CoronaActivity/109 2019-08-17 01:40:15.653 1386-3134/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.Studio17.drawrider/com.ansca.corona.CoronaActivity/109 2019-08-17 01:40:15.670 1386-3134/? D/Boost: hostingType=activity, hostingName=com.Studio17.drawrider/com.ansca.corona.CoronaActivity, callerPackage=com.miui.home, isSystem=true, isBoostNeeded=false. 2019-08-17 01:40:15.670 1386-3134/? I/ActivityManager: Start proc 5858:com.Studio17.drawrider/u0a226 for activity com.Studio17.drawrider/com.ansca.corona.CoronaActivity caller=com.miui.home 2019-08-17 01:40:15.876 1386-3134/? W/ActivityManager: Force finishing activity com.Studio17.drawrider/com.ansca.corona.CoronaActivity

Without the Appodeal ad plugin, everything works. What is the problem, please help.

There is not enough information provided to help you. Are you using the latest daily build? Can you post your build setting? Code to initialize Appodeal? Post the entire crash log in bit bucket (or similar service) and provide the link.

I built an android android yesterday with Appodeal with no issue.

Adrian

plugins = { ["plugin.utf8"] = { publisherId = "com.coronalabs" }, ['plugin.appodeal.beta.base'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.beta.AdColony'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.beta.AmazonAds'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.beta.AppLovin'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.beta.Appnext'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.beta.Chartboost'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.beta.FacebookAudience'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.beta.Flurry'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.beta.GoogleAdMob'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.beta.InMobi'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.beta.IronSource'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.beta.Mobvista'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.beta.MyTarget'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.beta.Ogury'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.beta.StartApp'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.beta.Tapjoy'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.beta.TwitterMoPub'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.beta.Unity'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.beta.Vungle'] = { publisherId = 'com.coronalabs' }, --['plugin.appodeal.beta.Yandex'] = { publisherId = 'com.coronalabs' } }

build setting code

Code to initialize appodeal? Full crash posted on a place that makes them readable?

ads = require( "plugin.appodeal" ) ads.init( adListener, { disableWriteExternalPermissionCheck = true,appKey=gWS.appIDandroid, testMode = false,bannerAnimation = true,hasUserConsent = hasUserConsent})

I can’t get an error report because the application crashes immediately and gives only that. In the previous version of Corona-3490 everything works. Thanks.

Did you add the admob required entry in the Android section of the build settings?

applicationChildElements = { [[\<meta-data android:name="com.google.android.gms.ads.APPLICATION\_ID" android:value="xxxx"/\>]], }

Corona SDK:  2019.3520 

OS: windows

Issue: App crashes when using appodeal plugins, there is no splash screen it just closes.

After some investigation I was able to debug the app using ADB and got the following log:

The Google Mobile Ads SDK was initialized incorrectly. AdMob publishers&nbsp; &nbsp; \*08-30 15:59:33.798 28387 28387 E AndroidRuntime: \* should follow the instructions here: https://goo.gl/fQ2neu to add a valid&nbsp; \* 08-30 15:59:33.798 28387 28387 E AndroidRuntime: \* App ID inside the AndroidManifest. Google Ad Manager publishers should&nbsp; &nbsp; &nbsp;\*08-30 15:59:33.798 28387 28387 E AndroidRuntime: \* follow instructions here: https://goo.gl/h17b6x.&nbsp;

I don’t use AdMob when setting up Appodela I specifically commented out that provider since I don’t want to use them

  --[‘plugin.appodeal.GoogleAdMob’] = { publisherId = ‘com.coronalabs’ },

I try to follow agramonte  advice and try to add the following configuration to the build.settings file and since I don’t care for addmobe Iet the default appid there like the following:

android = { versionCode = "1.0", versionName = 1.0, &nbsp; &nbsp; &nbsp;applicationChildElements = &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [[&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<meta-data android:name="com.google.android.gms.ads.APPLICATION\_ID" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; android:value="xxxx"/\> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;]], &nbsp; &nbsp; &nbsp; &nbsp; }, },

Now i’m getting Invalid Application ID How can I make corona to ignore admob? since I will not be using it.

appodeal.init( adProvider.adListener, { appKey=xxxx, disableWriteExternalPermissionCheck=true, hasUserConsent=false, disableNetworks = { "admob", "my\_target" } } )

Hello all.

Can anyone give me the full scrip for game development crash course with corona sdk thanks if u do?

 

https://www.betacalendars.com/

Welcome to the Corona Labs community forums. I would suggest starting here:

http://docs.coronalabs.com/guide/programming/index.html

BTW: I removed your hyperlink from your post. I was really close to just marking you as a spammer by posting unsolicited off-topic advertising posts.  See the Forum Rules:

https://coronalabs.com/forum-rules/

Rob