Android Question when i try to run the app is exited

Sadk

Member
ppp.PNG
 
Upvote 0

Peter Simpson

Expert
Licensed User
Longtime User
At the top of your screen change the drop down list from Release to Debug, if need be in your logs tab click connect. If there is an error in your app it will appear in your logs once you change from Release to Debug...
 
Upvote 0

Sadk

Member
I always put

#BridgeLogger: True

in the main module attributes so it logs in Release mode as well.
B4X:
Logger connected to:  Xiaomi M2007J20CG
--------- beginning of system
--------- beginning of crash
--------- beginning of main
Copying updated assets files (1)
*** Service (starter) Create ***
** Service (starter) Start **
b4a.example.starter:_service_start, [(Intent) Intent { cmp=b4a.example/.starter }]
Error occurred on line: 18 (Starter)
java.lang.IllegalArgumentException: method b4a.example.starter._service_start argument 1 has type anywheresoftware.b4a.phone.Phone$IntentWrapper, got anywheresoftware.b4a.objects.IntentWrapper
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:348)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
    at b4a.example.starter.handleStart(starter.java:100)
    at b4a.example.starter.access$000(starter.java:8)
    at b4a.example.starter$1.run(starter.java:71)
    at anywheresoftware.b4a.objects.ServiceHelper$StarterHelper.onStartCommand(ServiceHelper.java:237)
    at b4a.example.starter.onStartCommand(starter.java:69)
    at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4150)
    at android.app.ActivityThread.access$1900(ActivityThread.java:229)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1924)
    at android.os.Handler.dispatchMessage(Handler.java:107)
    at android.os.Looper.loop(Looper.java:224)
    at android.app.ActivityThread.main(ActivityThread.java:7565)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
 
Upvote 0
Top