I just started receiving the following error when I compile and run any program, in release mode. My program was working fine, I added new code and started getting a "Unfortunately, ListMaster as stopped." dialog box, with no other information. I finally removed all code except the Activity.LoadLayout and was able to finally get the following error message.
Shutting down VM
threadid=1: thread exiting with uncaught exception (group=0xb4a53ba8)
java.lang.RuntimeException: Unable to create service b4a.example.starter: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2568)
at android.app.ActivityThread.access$1800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at b4a.example.starter.onCreate(starter.java:37)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2558)
... 10 more
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at b4a.example.starter.onCreate(starter.java:35)
... 11 more
Caused by: java.lang.RuntimeException: java.lang.ClassCastException: java.lang.Object[] cannot be cast to java.lang.String[]
at b4a.example.main.initializeProcessGlobals(main.java:360)
... 14 more
Caused by: java.lang.ClassCastException: java.lang.Object[] cannot be cast to java.lang.String[]
at b4a.example.cst._process_globals(cst.java:70)
at b4a.example.main.initializeProcessGlobals(main.java:357)
... 14 more
FATAL EXCEPTION: main
Shutting down VM
threadid=1: thread exiting with uncaught exception (group=0xb4a53ba8)
java.lang.RuntimeException: Unable to create service b4a.example.starter: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2568)
at android.app.ActivityThread.access$1800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at b4a.example.starter.onCreate(starter.java:37)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2558)
... 10 more
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at b4a.example.starter.onCreate(starter.java:35)
... 11 more
Caused by: java.lang.RuntimeException: java.lang.ClassCastException: java.lang.Object[] cannot be cast to java.lang.String[]
at b4a.example.main.initializeProcessGlobals(main.java:360)
... 14 more
Caused by: java.lang.ClassCastException: java.lang.Object[] cannot be cast to java.lang.String[]
at b4a.example.cst._process_globals(cst.java:70)
at b4a.example.main.initializeProcessGlobals(main.java:357)
... 14 more
FATAL EXCEPTION: main