Android Question chatMessageView example run-time error

donnyy

Member
Licensed User
i was having problem compiling the example, but after i updated all the java and android files, it compiles fine. However, when i try to open the app, i got the following error message. I have searched the forum but can't find anything that helps with this problem. This is the error i got:

B4X:
Logger connected to:  samsung SM-T350
--------- beginning of main
SELinux: seapp_context_lookup: seinfo=default, level=s0:c512,c768, pkgname=b4a.example
TimaSignature is unavailable
Added TimaKeyStore provider
ClassLoader referenced unknown path: /data/app/b4a.example-1/lib/arm
Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
Starting remote logger. Port: 35352
--------- beginning of system
Metadata value : SecSettings2
#1 mView = com.android.internal.policy.PhoneWindow$DecorView{8089f76 I.E...... R.....ID 0,0-0,0}
Use EGL_SWAP_BEHAVIOR_PRESERVED: true
** Service (starter) Create **
** Service (starter) Start **
<qeglDrvAPI_eglInitialize:379>: EGL 1.4 QUALCOMM build: Nondeterministic_AU_msm8916_32_LA.BR.1.2.6_RB1__release_AU (Ia10634f51b)
OpenGL ES Shader Compiler Version: XE031.06.00.05
Build Date: 01/04/16 Mon
Local Branch:
Remote Branch: quic/LA.BR.1.2.6_rb1.7
Local Patches: NONE
Reconstruct Branch: NOTHING
Initialized EGL, version 1.4
** Activity (main) Create, isFirst = true **
setTypeface with style : 0
No package identifier when getting value for resource number 0x00000000
main_activity_create (java line: 338)
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:166)
    at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209)
    at b4a.example.main._activity_create(main.java:338)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:179)
    at b4a.example.main.afterFirstLayout(main.java:102)
    at b4a.example.main.access$000(main.java:17)
    at b4a.example.main$WaitForLayout.run(main.java:80)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:148)
    at android.app.ActivityThread.main(ActivityThread.java:7325)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Caused by: java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.objects.CustomViewWrapper.AfterDesignerScript(CustomViewWrapper.java:64)
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:158)
    ... 14 more
Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x0
    at android.content.res.Resources.getValue(Resources.java:2596)
    at android.content.res.Resources.getColor(Resources.java:2208)
    at android.content.Context.getColor(Context.java:447)
    at android.support.v4.content.ContextCompatApi23.getColor(ContextCompatApi23.java:32)
    at android.support.v4.content.ContextCompat.getColor(ContextCompat.java:432)
    at jp.bassaer.chatmessageview.views.ChatView.<init>(ChatView.java:32)
    at de.donmanfred.ChatViewWrapper._initialize(ChatViewWrapper.java:67)
    ... 17 more
FATAL EXCEPTION: main
Process: b4a.example, PID: 8199
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:166)
    at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209)
    at b4a.example.main._activity_create(main.java:338)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:179)
    at b4a.example.main.afterFirstLayout(main.java:102)
    at b4a.example.main.access$000(main.java:17)
    at b4a.example.main$WaitForLayout.run(main.java:80)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:148)
    at android.app.ActivityThread.main(ActivityThread.java:7325)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Caused by: java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.objects.CustomViewWrapper.AfterDesignerScript(CustomViewWrapper.java:64)
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:158)
    ... 14 more
Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x0
    at android.content.res.Resources.getValue(Resources.java:2596)
    at android.content.res.Resources.getColor(Resources.java:2208)
    at android.content.Context.getColor(Context.java:447)
    at android.support.v4.content.ContextCompatApi23.getColor(ContextCompatApi23.java:32)
    at android.support.v4.content.ContextCompat.getColor(ContextCompat.java:432)
    at jp.bassaer.chatmessageview.views.ChatView.<init>(ChatView.java:32)
    at de.donmanfred.ChatViewWrapper._initialize(ChatViewWrapper.java:67)
    ... 17 more
After accept
SELinux: seapp_context_lookup: seinfo=default, level=s0:c512,c768, pkgname=b4a.example
TimaSignature is unavailable
Added TimaKeyStore provider
ClassLoader referenced unknown path: /data/app/b4a.example-2/lib/arm
Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
Starting remote logger. Port: 35352
#1 mView = com.android.internal.policy.PhoneWindow$DecorView{8089f76 I.E...... R.....ID 0,0-0,0}
Use EGL_SWAP_BEHAVIOR_PRESERVED: true
Metadata value : SecSettings2
** Service (starter) Create **
** Service (starter) Start **
<qeglDrvAPI_eglInitialize:379>: EGL 1.4 QUALCOMM build: Nondeterministic_AU_msm8916_32_LA.BR.1.2.6_RB1__release_AU (Ia10634f51b)
OpenGL ES Shader Compiler Version: XE031.06.00.05
Build Date: 01/04/16 Mon
Local Branch:
Remote Branch: quic/LA.BR.1.2.6_rb1.7
Local Patches: NONE
Reconstruct Branch: NOTHING
Initialized EGL, version 1.4
** Activity (main) Create, isFirst = true **
setTypeface with style : 0
No package identifier when getting value for resource number 0x00000000
main_activity_create (java line: 338)
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:166)
    at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209)
    at b4a.example.main._activity_create(main.java:338)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:179)
    at b4a.example.main.afterFirstLayout(main.java:102)
    at b4a.example.main.access$000(main.java:17)
    at b4a.example.main$WaitForLayout.run(main.java:80)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:148)
    at android.app.ActivityThread.main(ActivityThread.java:7325)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Caused by: java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.objects.CustomViewWrapper.AfterDesignerScript(CustomViewWrapper.java:64)
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:158)
    ... 14 more
Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x0
    at android.content.res.Resources.getValue(Resources.java:2596)
    at android.content.res.Resources.getColor(Resources.java:2208)
    at android.content.Context.getColor(Context.java:447)
    at android.support.v4.content.ContextCompatApi23.getColor(ContextCompatApi23.java:32)
    at android.support.v4.content.ContextCompat.getColor(ContextCompat.java:432)
    at jp.bassaer.chatmessageview.views.ChatView.<init>(ChatView.java:32)
    at de.donmanfred.ChatViewWrapper._initialize(ChatViewWrapper.java:67)
    ... 17 more
FATAL EXCEPTION: main
Process: b4a.example, PID: 14477
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:166)
    at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209)
    at b4a.example.main._activity_create(main.java:338)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:179)
    at b4a.example.main.afterFirstLayout(main.java:102)
    at b4a.example.main.access$000(main.java:17)
    at b4a.example.main$WaitForLayout.run(main.java:80)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:148)
    at android.app.ActivityThread.main(ActivityThread.java:7325)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Caused by: java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.objects.CustomViewWrapper.AfterDesignerScript(CustomViewWrapper.java:64)
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:158)
    ... 14 more
Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x0
    at android.content.res.Resources.getValue(Resources.java:2596)
    at android.content.res.Resources.getColor(Resources.java:2208)
    at android.content.Context.getColor(Context.java:447)
    at android.support.v4.content.ContextCompatApi23.getColor(ContextCompatApi23.java:32)
    at android.support.v4.content.ContextCompat.getColor(ContextCompat.java:432)
    at jp.bassaer.chatmessageview.views.ChatView.<init>(ChatView.java:32)
    at de.donmanfred.ChatViewWrapper._initialize(ChatViewWrapper.java:67)
    ... 17 more
After accept
 

donnyy

Member
Licensed User
Thanks Erel. I have downloaded and unzip the files again but still get the same error (tried using AdditionalRes or putting the folder in the root folder of the project). I also have problem trying the AppCompat example too. NJDude said he has to recompile the library, not sure if this is related. I will try this again when the new AppCompat library is available.
 
Upvote 0

DonManfred

Expert
Licensed User
have problem trying the AppCompat example too. NJDude said he has to recompile the library
@NJDude and AppCompat is not related. NJDude was talking about a lib from him in the thread you have in mind. AppCompat is written by @corwin42
 
Upvote 0
Top