I’m trying to implement admob to my app, when i buid it doesn’t appear any error but when i open the app in the cell phone it closes suddenly. (This only happens when I use admob otherwise it works fine) anyone know the reason?
Start your investigation with adb logcat
I’ve tried that but I’ve been trying for two days to find the error.
FATAL EXCEPTION: main
Process: com.DefaultCompanyE.HockeyParanoia, PID: 8702
java.lang.Error: FATAL EXCEPTION [main]
Unity version : 2019.4.27f1
Device model : samsung GT-I9192
Device fingerprint: samsung/serranodsub/serranods:4.4.2/KOT49H/I9192UBSCQB1:user/release-keys
Caused by: java.lang.VerifyError: com/unity3d/player/j
com.unity3d.player.UnityPlayer.()
com.unity3d.player.UnityPlayerActivity.onCreate()
android.app.Activity.performCreate(Activity.java:5458)
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2376)
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2470)
android.app.ActivityThread.access$900(ActivityThread.java:174)
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1307)
android.os.Handler.dispatchMessage(Handler.java:102)
android.os.Looper.loop(Looper.java:146)
android.app.ActivityThread.main(ActivityThread.java:5593)
java.lang.reflect.Method.invokeNative(Native Method)
java.lang.reflect.Method.invoke(Method.java:515)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
dalvik.system.NativeStart.main(Native Method)
Everything works fine but I just get the error when I want to use admob.
That looks like perhaps an older version of Android (4.4.2)… are you sure the version of admob you have still supports that?