Hello! I am using Google Play OBB Downloader and all works good, til i’ve integrated new IAP package (just integrated, not used). Then my app begins crashing on lauch. If I delete IAP package, then all works good again.
I just call GooglePlayDownloader.FetchOBB() in start scene, that’s how i use OBB Downloader.
Unity Version : 5.3.1p3
Android API Level : 14
Adb Logcat give me next information:
E/AndroidRuntime(13128): FATAL EXCEPTION: main
E/AndroidRuntime(13128): Process: ru.funreality.arphysics, PID: 13128
E/AndroidRuntime(13128): java.lang.Error: FATAL EXCEPTION [main]
E/AndroidRuntime(13128): Unity version : 5.3.1p3
E/AndroidRuntime(13128): Device model : LGE LG-D802
E/AndroidRuntime(13128): Device fingerprint: lge/g2_open_com/g2:4.4.2/KOT49I.D80220b/D80220b.1398153044:user/release-keys
E/AndroidRuntime(13128):
E/AndroidRuntime(13128): Caused by: java.lang.RuntimeException: Unable to start activity ComponentInfo{ru.funreality.arphysics/com.unity3d.plugin.downloader.UnityDownloaderActivity}: java.lang.NullPointerException
E/AndroidRuntime(13128): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2200)
E/AndroidRuntime(13128): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2250)
E/AndroidRuntime(13128): at android.app.ActivityThread.access$800(ActivityThread.java:139)
E/AndroidRuntime(13128): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1200)
E/AndroidRuntime(13128): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(13128): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime(13128): at android.app.ActivityThread.main(ActivityThread.java:5105)
E/AndroidRuntime(13128): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(13128): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime(13128): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:792)
E/AndroidRuntime(13128): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608)
E/AndroidRuntime(13128): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(13128): Caused by: java.lang.NullPointerException
E/AndroidRuntime(13128): at com.unity3d.plugin.downloader.UnityDownloaderActivity.onCreate(Unknown Source)
E/AndroidRuntime(13128): at android.app.Activity.performCreate(Activity.java:5275)
E/AndroidRuntime(13128): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
E/AndroidRuntime(13128): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2164)
E/AndroidRuntime(13128): … 11 more
W/ActivityManager( 876): Force finishing activity ru.funreality.arphysics/com.unity3d.plugin.downloader.UnityDownloaderActivity
…but i can’t figure out, why that’s happening.
Something is probably wrong with the way you added the plugins.
If you still have no clue on how to fix that - please submit a bug report, and don’t forget to attach the project.
Thanks!