java.lang.RuntimeException: java.lang.reflect.InvocationTargetException

Xamarin Bugzilla | herzock | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    After newest alpha relase Android debugging broken

    Xamarin Bugzilla | 2 years ago | herzock
    java.lang.RuntimeException: java.lang.reflect.InvocationTargetException

    Root Cause Analysis

    1. md52ce486a14f4bcd95899665e9d932190b.JavaProxyThrowable

      System.NullReferenceException: Object reference not set to an instance of an object at Xamarin.Forms.Platform.Android.Platform.UpdateActionBarBackgroundColor () <IL 0x00010, 0x00094> at Xamarin.Forms.Platform.Android.Platform.set_CurrentNavigationPage (Xamarin.Forms.NavigationPage) <IL 0x000f2, 0x0058b> at Xamarin.Forms.Platform.Android.Platform.UpdateActionBar () <IL 0x0006a, 0x00223> at Xamarin.Forms.Platform.Android.Platform.SetPage (Xamarin.Forms.Page) <IL 0x000c0, 0x003e3> at Xamarin.Forms.Platform.Android.FormsApplicationActivity.InternalSetPage (Xamarin.Forms.Page) <IL 0x000be, 0x00413> at Xamarin.Forms.Platform.Android.FormsApplicationActivity.SetMainPage () <IL 0x0000c, 0x00047> at Xamarin.Forms.Platform.Android.FormsApplicationActivity.LoadApplication (Xamarin.Forms.Application) <IL 0x0002e, 0x00153> Todo.Android.MainActivity.OnCreate (Android.OS.Bundle) [0x00011] in c:\Users\jonas.hahn\Downloads\Todo\SharedProject\Android\MainActivity.cs:24 Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (intptr,intptr,intptr) [0x00011] in /Users/builder/data/lanes/1502/690e31db/source/monodroid/src/Mono.Android/platforms/android-21/src/generated/Android.App.Activity.cs:2707 at (wrapper dynamic-method) object.9bcbe46b-3e7e-4b34-aea6-bef6e2a46887 (intptr,intptr,intptr) <IL 0x00017, 0x00027>

      at md5bbda18165034e574ca338d2c41b760cf.MainActivity.n_onCreate()
    2. md5bbda18165034e574ca338d2c41b760cf
      MainActivity.onCreate
      1. md5bbda18165034e574ca338d2c41b760cf.MainActivity.n_onCreate(Native Method)
      2. md5bbda18165034e574ca338d2c41b760cf.MainActivity.onCreate(MainActivity.java:28)
      2 frames
    3. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:5008)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
      5. android.app.ActivityThread.access$600(ActivityThread.java:130)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
      7. android.os.Handler.dispatchMessage(Handler.java:99)
      8. android.os.Looper.loop(Looper.java:137)
      9. android.app.ActivityThread.main(ActivityThread.java:4745)
      9 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:511)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
      2 frames
    6. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame