Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Game crashes on launch with Appodeal plugin in corona 2019.3517
Started by GamingStudio17 Aug 16 2019 02:49 PM

9 replies to this topic
android app bundles appodeal android
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

GamingStudio17

[GLOBAL: userInfoPane.html]
GamingStudio17
  • Contributor

  • 168 posts
  • Corona SDK

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.


[TOPIC: post.html]
#2

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,256 posts
  • Corona SDK

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



[TOPIC: post.html]
#3

GamingStudio17

[GLOBAL: userInfoPane.html]
GamingStudio17
  • Contributor

  • 168 posts
  • Corona SDK

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



[TOPIC: post.html]
#4

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,256 posts
  • Corona SDK

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



[TOPIC: post.html]
#5

GamingStudio17

[GLOBAL: userInfoPane.html]
GamingStudio17
  • Contributor

  • 168 posts
  • Corona SDK

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.


[TOPIC: post.html]
#6

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,256 posts
  • Corona SDK

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"/>
            ]],
        }


[TOPIC: post.html]
#7

moycg77

[GLOBAL: userInfoPane.html]
moycg77
  • Observer

  • 7 posts
  • Corona SDK

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    *08-30 15:59:33.798 28387 28387 E AndroidRuntime: * should follow the instructions here: https://goo.gl/fQ2neu to add a valid  *
08-30 15:59:33.798 28387 28387 E AndroidRuntime: * App ID inside the AndroidManifest. Google Ad Manager publishers should     *08-30 15:59:33.798 28387 28387 E AndroidRuntime: * follow instructions here: https://goo.gl/h17b6x. 

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,
     applicationChildElements =
        {
            [[
                <meta-data android:name="com.google.android.gms.ads.APPLICATION_ID"
                    android:value="xxxx"/>
            ]],
        },
},

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



[TOPIC: post.html]
#8

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,256 posts
  • Corona SDK

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


[TOPIC: post.html]
#9

betacalendars

[GLOBAL: userInfoPane.html]
betacalendars
  • Observer

  • 1 posts
  • Corona SDK

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/



[TOPIC: post.html]
#10

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,309 posts
  • Enterprise

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




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: android app bundles, appodeal, android