Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

help with adb logcat
Started by dodi_games Sep 11 2019 05:14 PM

4 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

dodi_games

[GLOBAL: userInfoPane.html]
dodi_games
  • Contributor

  • 383 posts
  • Corona SDK

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)
  } )


[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,062 posts
  • Enterprise

See https://coronalabs.com/blog/2019/07/22/important-admob-and-other-ad-plugin-changes/


  • dodi_games likes this

[TOPIC: post.html]
#3

dodi_games

[GLOBAL: userInfoPane.html]
dodi_games
  • Contributor

  • 383 posts
  • Corona SDK

Thanks @Rob, but before seeing this answer I wrote to appodeal about whether they were going to support Corona Sdk in the future and this was his answer:

" We have not supported Corona Plugin and will no longer release updates Appodeal SDK. You can contact Corona support here: https://ru.coronalabs.com/support/ "

I am a little confused right now.

DoDi

[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,062 posts
  • Enterprise

DoDi. Appodeal staff has never supported the Corona plugin. Corona Labs builds and supports the plugin. We use the same SDK that any native Android or iOS developer can use. Our engineers handle issues with it. If there are issues inside the Appodeal SDK, then that's something they would have to fix but we would usually reach out to them. You should start with us regarding issues (and give us and the community time to respond).  Appodeal is our parent company, but we are a separate company in almost all aspects.

 

Rob


  • dodi_games likes this

[TOPIC: post.html]
#5

dodi_games

[GLOBAL: userInfoPane.html]
dodi_games
  • Contributor

  • 383 posts
  • Corona SDK

@Rob
Thanks for the explanation!


[topic_controls]
[/topic_controls]