I’ve been out for a while and I decided to continue my game but with the google update I’m breaking my head. Try to build my game using the latest daily build and I have found that the app closes immediately (Android device). I understand that it must be something that I change with the appodeal plugin or something that I am doing wrong. I will appreciate any help. I’ve been trying to get the logcat for many hours. It’s my first time.
build settings:
-- -- For more information on build.settings, see the Project Build Settings guide at: -- https://docs.coronalabs.com/guide/distribution/buildSettings -- settings = { orientation = { -- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight default = "portrait", supported = { "portrait", }, }, -- -- Android section -- android = { usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.WRITE\_EXTERNAL\_STORAGE", "android.permission.GET\_ACCOUNTS", "android.permission.ACCESS\_COARSE\_LOCATION", "android.permission.ACCESS\_FINE\_LOCATION", }, }, -- -- iOS section -- iphone = { xcassets = "Images.xcassets", plist = { UIStatusBarHidden = false, UILaunchStoryboardName = "LaunchScreen", NSAppTransportSecurity = { NSAllowsArbitraryLoads=true }, }, }, --[[ -- -- Splash Screen section -- splashScreen = { enable = false }, --]] -- -- Plugins -- plugins = { -- Base ['plugin.appodeal.beta.base'] = { publisherId = 'com.coronalabs' }, -- Interstitial & Rewarded Video --['plugin.appodeal.beta.GoogleAdMob'] = { publisherId = 'com.coronalabs' }, --['plugin.appodeal.beta.StartApp'] = { publisherId = 'com.coronalabs' }, --['plugin.appodeal.beta.AdColony'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.beta.AppLovin'] = { publisherId = 'com.coronalabs' }, }, -- -- Project section -- excludeFiles = { -- Exclude unnecessary files for each platform all = { "Icon.png", "Icon-\*dpi.png", "Images.xcassets", }, android = { "LaunchScreen.storyboardc", }, }, }
Where the error occurs in the logcat:
09-11 20:47:23.554 864 1566 E ActivityManager: applyOptionsLocked: Unknown animationType=0 09-11 20:47:23.568 864 1566 I ActivityManager: Start proc 14909:com.gmail.classhdarts.game.mygame/u0a103 for activity com.gmail.classhdarts.game.mygame/com.ansca.corona.CoronaActivity 09-11 20:47:23.651 14909 14909 I MultiDex: VM with version 2.1.0 has multidex support 09-11 20:47:23.651 14909 14909 I MultiDex: Installing application 09-11 20:47:23.652 14909 14909 I MultiDex: VM has multidex support, MultiDex support library is disabled. 09-11 20:47:23.657 14909 14909 D AndroidRuntime: Shutting down VM 09-11 20:47:23.658 14909 14909 E AndroidRuntime: FATAL EXCEPTION: main 09-11 20:47:23.658 14909 14909 E AndroidRuntime: Process: com.gmail.classhdarts.game.mygame, PID: 14909 09-11 20:47:23.658 14909 14909 E AndroidRuntime: java.lang.RuntimeException: Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider: java.lang.IllegalStateException: 09-11 20:47:23.658 14909 14909 E AndroidRuntime: 09-11 20:47:23.658 14909 14909 E AndroidRuntime: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* 09-11 20:47:23.658 14909 14909 E AndroidRuntime: \* The Google Mobile Ads SDK was initialized incorrectly. AdMob publishers \* 09-11 20:47:23.658 14909 14909 E AndroidRuntime: \* should follow the instructions here: https://goo.gl/fQ2neu to add a valid \* 09-11 20:47:23.658 14909 14909 E AndroidRuntime: \* App ID inside the AndroidManifest. Google Ad Manager publishers should \* 09-11 20:47:23.658 14909 14909 E AndroidRuntime: \* follow instructions here: https://goo.gl/h17b6x. \* 09-11 20:47:23.658 14909 14909 E AndroidRuntime: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* 09-11 20:47:23.658 14909 14909 E AndroidRuntime: 09-11 20:47:23.658 14909 14909 E AndroidRuntime: 09-11 20:47:23.658 14909 14909 E AndroidRuntime: at android.app.ActivityThread.installProvider(ActivityThread.java:5856) 09-11 20:47:23.658 14909 14909 E AndroidRuntime: at android.app.ActivityThread.installContentProviders(ActivityThread.java:5445) 09-11 20:47:23.658 14909 14909 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5384) 09-11 20:47:23.658 14909 14909 E AndroidRuntime: at android.app.ActivityThread.-wrap2(ActivityThread.java) 09-11 20:47:23.658 14909 14909 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1545) 09-11 20:47:23.658 14909 14909 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102) 09-11 20:47:23.658 14909 14909 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154) 09-11 20:47:23.658 14909 14909 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6119) 09-11 20:47:23.658 14909 14909 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 09-11 20:47:23.658 14909 14909 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) 09-11 20:47:23.658 14909 14909 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776) 09-11 20:47:23.658 14909 14909 E AndroidRuntime: Caused by: java.lang.IllegalStateException:
I read something about a new admob rule in the appodeal plugin but I only have the key that appodeal gives me. I don’t have an admob key yet. I am using the appodeal test mode to be able to test my game.
Thanks in advance
DoDi
UPDATE!
also try to disable admob from appodeal init ()
appodeal.init( M.adsListener, { appKey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", testMode = true, childDirectedTreatment = false, --disableAutoCacheForAdTypes = { "interstitial", "rewardedVideo" }, disableWriteExternalPermissionCheck = true, disableNetworks = { "amazon\_ads", "admob" }, supportedAdTypes = {"interstitial", "rewardedVideo"}, hasUserConsent = (gameSettings.userConsent or false) } )