Android Question Unable to create service b4a.example.starter: java.lang.RuntimeException

D Brandl

New Member
Licensed User
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
 

D Brandl

New Member
Licensed User
Forgot to add B4A Version 5.80, Core library Version 5.80 (only library included)
Manifest file:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="14"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.
 
Upvote 0
Top