java.lang.RuntimeException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • App crashes while creating table in Xamarin Forms
    via Stack Overflow by Alina
    ,
    • java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1183) Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1388) ... 1 more Caused by: android.runtime.JavaProxyThrowable: System.TypeInitializationException: The type initializer for 'MyApp.App' threw an exception. ---> System.TypeInitializationException: The type initializer for '<StartupCode$MyApp>.$MyApp' threw an exception. ---> System.Exception: Table has no (public) columns at SQLite.Net.SQLiteConnection.CreateTable (System.Type ty, CreateFlags createFlags) <0xafa2c488 + 0x00830> in <filename unknown>:0 at SQLite.Net.SQLiteConnection.CreateTable[T] (CreateFlags createFlags) <0xafa2c358 + 0x0002b> in <filename unknown>:0 at MyApp.Database.createTables () <0xafa2be88 + 0x00043> in <filename unknown>:0 at MyApp.Database..ctor () <0xafa2be10 + 0x00017> in <filename unknown>:0 at <StartupCode$MyApp>.$MyApp..cctor () <0xafa27c08 + 0x00037> in <filename unknown>:0 --- End of inner exception stack trace --- at (wrapper managed-to-native) System.Object:__icall_wrapper_mono_generic_class_init (intptr) at MyApp.App..cctor () <0xafa27a88 + 0x00023> in <filename unknown>:0 --- End of inner exception stack trace --- at (wrapper managed-to-native) System.Object:__icall_wrapper_mono_generic_class_init (intptr) at MyApp.Droid.MainActivity.OnCreate (Android.OS.Bundle bundle) <0xb3687f90 + 0x00087> in <filename unknown>:0 at Android.Support.V4.App.FragmentActivity.n_OnCreate_Landroid_os_Bundle_ (IntPtr jnienv, IntPtr native__this, IntPtr native_savedInstanceState) <0xb3687ca0 + 0x0005b> in <filename unknown>:0 at (wrapper dynamic-method) System.Object:d7e14740-21a3-442d-9288-1607ab31d531 (intptr,intptr,intptr) at md5378e1f518696797756e862e1d3503a1c.MainActivity.n_onCreate(Native Method) at md5378e1f518696797756e862e1d3503a1c.MainActivity.onCreate(MainActivity.java:32) at android.app.Activity.performCreate(Activity.java:6289) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2655) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2767) at android.app.ActivityThread.access$900(ActivityThread.java:177) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1449) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:145) at android.app.ActivityThread.main(ActivityThread.java:5951) ... 4 more
    No Bugmate found.