App crashes Solar2D 2021.3652

Hi

Here is my build. settings file

android =
	{
  
    applicationChildElements =
        {
            [[
                <meta-data android:name="com.google.android.gms.ads.APPLICATION_ID"
                    android:value="XXXXXXXXXXXXX"/>  -- replace with your app id. See: https://goo.gl/fQ2neu
            ]],
        },
        
    strings =
		{

		    ["google_app_id"]= "XXXXXXXXXXXXX"
		},
    
    useGoogleServicesJson = true,
        
		usesPermissions =
		{
			"android.permission.INTERNET",
      "android.permission.ACCESS_NETWORK_STATE",
      "com.android.vending.CHECK_LICENSE",
      "android.permission.VIBRATE",
      "android.permission.GET_ACCOUNTS",
      "com.android.vending.BILLING",
    
		},
    
    googlePlayGamesAppId = "XXXXXXXXX",
    
    minSdkVersion = "17",

  },
plugins =
      {
        
        ["CoronaProvider.native.popup.social"] =
        {
            publisherId = "com.coronalabs"
        },
        ["plugin.gpgs.v2"] = 
        {
            publisherId = "com.coronalabs",
            supportedPlatforms = { ["android"] = true }
        },
        ["plugin.google.iap.billing"] =
        {
            publisherId = "com.coronalabs"
        },
        
        ["plugin.firebaseAnalytics"] =
        {
            publisherId="tech.scotth",
            marketplaceId = "XXXXXX",
        },
        
        ['plugin.appodeal.beta.base'] = { publisherId = 'com.coronalabs' },
        ['plugin.appodeal.beta.GoogleAdMob'] = { publisherId = 'com.coronalabs' },
       -- ['plugin.appodeal.beta.StartApp'] = { 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.Chartboost'] = { publisherId = 'com.coronalabs' },
       -- ['plugin.appodeal.beta.FacebookAudience'] = { 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.StartApp'] = { publisherId = 'com.coronalabs' },
       -- ['plugin.appodeal.beta.Smaato'] = { publisherId = 'com.coronalabs' },
        ['plugin.appodeal.beta.Unity'] = { publisherId = 'com.coronalabs' },
       -- ['plugin.appodeal.beta.Vungle'] = { publisherId = 'com.coronalabs' },
        ['plugin.appodeal.beta.Ogury'] = { publisherId = 'com.coronalabs' },
        
      }

I am having crashes with the app even though with previous build 2021.3643 the built app functioned well. I didn’t change any things in the build settings since then. I am not sure what is the cause of the app crashes. The app crashes the moment I open the app.

I assume that the Google appid is filled out instead of “XXX” that is shown in the code? Also, I thought recently the applovin SDK also requires a key:

 applicationChildElements =
    {
        [[
            <meta-data android:name="com.google.android.gms.ads.APPLICATION_ID"
            android:value="ca-app-pub-xxx"/>
        ]],
        [[
            <meta-data android:name="applovin.sdk.key"
                android:value="qg4rORL8m_xxxx" />
        ]]
    },
1 Like

Thank you for the applovin sdk key requirement. I could not find it in the solar2d doc about it but I have included in my build settings.
The appodeal plugin was causing the crashes and found the Unity ads module to be the cause for my use case. Once I removed the unity module the apps were not crashing anymore.

The crash message I received from google play console is the following:

java.lang.SecurityException: 
  at android.os.Parcel.createExceptionOrNull (Parcel.java:2385)
  at android.os.Parcel.createException (Parcel.java:2369)
  at android.os.Parcel.readException (Parcel.java:2352)
  at android.os.Parcel.readException (Parcel.java:2294)
  at com.android.internal.telephony.ITelephony$Stub$Proxy.getNetworkTypeForSubscriber (ITelephony.java:8762)
  at android.telephony.TelephonyManager.getNetworkType (TelephonyManager.java:3706)
  at android.telephony.TelephonyManager.getNetworkType (TelephonyManager.java:3670)
  at com.unity3d.services.core.connectivity.ConnectivityMonitor.connectionStatusChanged (ConnectivityMonitor.java:162)
  at com.unity3d.services.core.connectivity.ConnectivityNetworkCallback.onCapabilitiesChanged (ConnectivityNetworkCallback.java:48)
  at android.net.ConnectivityManager$NetworkCallback.onAvailable (ConnectivityManager.java:3793)
  at android.net.ConnectivityManager$CallbackHandler.handleMessage (ConnectivityManager.java:4073)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loop (Looper.java:246)
  at android.os.HandlerThread.run (HandlerThread.java:67)

Did some light research look like a old unity ad specific issue, when did you last build/get this error?

I got this error recently with the 2021.3652 build