Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Game Crash at startup only in the second time I run the game

Discussion in 'Android' started by MaiconRobertoDaSilva, Mar 27, 2020.

  1. MaiconRobertoDaSilva

    MaiconRobertoDaSilva

    Joined:
    Oct 8, 2014
    Posts:
    1
    Hello Guys
    Please help me to solve this problem, I've been trying to fix it for days and can't find the solution on google
    Here we go:
    My game crashes after I integrated Chartboost SDK, it runs normally in the frst time, but when I close the game and run it again it crashes at startup, I tried everything, different Unity Versions, different Googleplay Game Services versions but nothing works
    Please help to check the Log below and let me know what you think

    Thank You
    All The Best
    Maicon
     

    Attached Files:

  2. jawaadsheikh

    jawaadsheikh

    Joined:
    Nov 19, 2016
    Posts:
    12
    I am still having the same problem. So based on what I found here,
    https://answers.chartboost.com/en-us/articles/204377039#unity

    I tried to combine the AndroidManifest myself (I'm still playing with the file) to get a test interstitial to display in the first place but now I'm stuck.

    Here is what my Manifest looks like:

    Code (CSharp):
    1. <?xml version="1.0" encoding="utf-8"?>
    2. <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.unity3d.player" android:installLocation="preferExternal" android:theme="@android:style/Theme.NoTitleBar" android:versionCode="1" android:versionName="1.0">
    3.   <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true" />
    4.   <uses-sdk android:minSdkVersion="23" />
    5.  
    6.   <uses-permission android:name="android.permission.INTERNET" />
    7.   <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    8.  
    9.   <application android:icon="@drawable/app_icon" android:label="@string/app_name" >
    10.     <activity android:name="com.unity3d.player.UnityPlayerActivity" android:label="@string/app_name">
    11.       <intent-filter>
    12.         <action android:name="android.intent.action.MAIN" />
    13.         <category android:name="android.intent.category.LAUNCHER" />
    14.         </intent-filter>
    15.      
    16.       <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
    17.       <meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" />
    18.     </activity>
    19.     <!-- Required by Chartboost -->
    20.     <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
    21.     <activity android:name="com.chartboost.sdk.CBImpressionActivity"
    22.                   android:excludeFromRecents="true"
    23.                   android:hardwareAccelerated="true"
    24.                   android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"
    25.                   android:configChanges="keyboardHidden|orientation|screenSize"/>
    26.   </application>
    27. </manifest>
     
  3. shanzebali

    shanzebali

    Joined:
    Aug 18, 2015
    Posts:
    4
    I am also facing the same problem. Any solution here ?