Android Question compactactionbar error

Status
Not open for further replies.

donnyy

Member
Licensed User
Longtime User
i have compiled the compactionbar example but when i tried to run the app, i got the following error, not sure how to fix it. please help.

B4X:
Logger connected to:  samsung SM-G920W8
--------- beginning of crash
FATAL EXCEPTION: main
Process: njdude.compact.actionbar, PID: 12298
java.lang.NoSuchMethodError: No virtual method AddTwoLinesAndBitmap2(Ljava/lang/String;Ljava/lang/String;Landroid/graphics/Bitmap;Ljava/lang/Object;)V in class Lanywheresoftware/b4a/objects/ListViewWrapper; or its super classes (declaration of 'anywheresoftware.b4a.objects.ListViewWrapper' appears in /data/app/njdude.compact.actionbar-1/base.apk)
    at njdude.compact.actionbar.compactactionbar._addmenuitem(compactactionbar.java:90)
    at njdude.compact.actionbar.main._activity_create(main.java:364)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:179)
    at njdude.compact.actionbar.main.afterFirstLayout(main.java:102)
    at njdude.compact.actionbar.main.access$000(main.java:17)
    at njdude.compact.actionbar.main$WaitForLayout.run(main.java:80)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6682)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
FATAL EXCEPTION: main
Process: njdude.compact.actionbar, PID: 19432
java.lang.NoSuchMethodError: No virtual method AddTwoLinesAndBitmap2(Ljava/lang/String;Ljava/lang/String;Landroid/graphics/Bitmap;Ljava/lang/Object;)V in class Lanywheresoftware/b4a/objects/ListViewWrapper; or its super classes (declaration of 'anywheresoftware.b4a.objects.ListViewWrapper' appears in /data/app/njdude.compact.actionbar-2/base.apk)
    at njdude.compact.actionbar.compactactionbar._addmenuitem(compactactionbar.java:90)
    at njdude.compact.actionbar.main._activity_create(main.java:364)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:179)
    at njdude.compact.actionbar.main.afterFirstLayout(main.java:102)
    at njdude.compact.actionbar.main.access$000(main.java:17)
    at njdude.compact.actionbar.main$WaitForLayout.run(main.java:80)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6682)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
--------- beginning of main
SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=njdude.compact.actionbar 
TimaKeyStore is enabled: try add TimaSignature Service and generateKeyPair Service
ClassLoader referenced unknown path: /data/app/njdude.compact.actionbar-1/lib/arm64
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: 13895
ThreadedRenderer.create() translucent=false
Input channel constructed: fd=55
setView = DecorView@5bffade[main] touchMode=true
dispatchAttachedToWindow
Relayout returned: oldFrame=[0,0][0,0] newFrame=[0,0][1440,2560] result=0x27 surface={isValid=true 529923417600} surfaceGenerationChanged=true
mHardwareRenderer.initialize() mSurface={isValid=true 529923417600} hwInitialized=true
loaded /vendor/lib64/egl/libGLES_mali.so
** Activity (main) Create, isFirst = true **
Initialized EGL, version 1.4
Swap behavior 1
EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000,  [1440x2560]-format:1
Get MotionRecognitionManager
mSContextService = com.samsung.android.hardware.context.ISemContextService$Stub$Proxy@f8a6f2
motionService = com.samsung.android.gesture.IMotionRecognitionService$Stub$Proxy@de90143
motionService = com.samsung.android.gesture.IMotionRecognitionService$Stub$Proxy@de90143
compactactionbar_addmenuitem (java line: 90)
java.lang.NoSuchMethodError: No virtual method AddTwoLinesAndBitmap2(Ljava/lang/String;Ljava/lang/String;Landroid/graphics/Bitmap;Ljava/lang/Object;)V in class Lanywheresoftware/b4a/objects/ListViewWrapper; or its super classes (declaration of 'anywheresoftware.b4a.objects.ListViewWrapper' appears in /data/app/njdude.compact.actionbar-1/base.apk)
    at njdude.compact.actionbar.compactactionbar._addmenuitem(compactactionbar.java:90)
    at njdude.compact.actionbar.main._activity_create(main.java:364)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:179)
    at njdude.compact.actionbar.main.afterFirstLayout(main.java:102)
    at njdude.compact.actionbar.main.access$000(main.java:17)
    at njdude.compact.actionbar.main$WaitForLayout.run(main.java:80)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6682)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
Shutting down VM
compactactionbar_addmenuitem (java line: 90)
java.lang.NoSuchMethodError: No virtual method AddTwoLinesAndBitmap2(Ljava/lang/String;Ljava/lang/String;Landroid/graphics/Bitmap;Ljava/lang/Object;)V in class Lanywheresoftware/b4a/objects/ListViewWrapper; or its super classes (declaration of 'anywheresoftware.b4a.objects.ListViewWrapper' appears in /data/app/njdude.compact.actionbar-1/base.apk)
    at njdude.compact.actionbar.compactactionbar._addmenuitem(compactactionbar.java:90)
    at njdude.compact.actionbar.main._activity_create(main.java:364)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:179)
    at njdude.compact.actionbar.main.afterFirstLayout(main.java:102)
    at njdude.compact.actionbar.main.access$000(main.java:17)
    at njdude.compact.actionbar.main$WaitForLayout.run(main.java:80)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6682)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
After accept
FATAL EXCEPTION: main
Process: njdude.compact.actionbar, PID: 21694
java.lang.NoSuchMethodError: No virtual method AddTwoLinesAndBitmap2(Ljava/lang/String;Ljava/lang/String;Landroid/graphics/Bitmap;Ljava/lang/Object;)V in class Lanywheresoftware/b4a/objects/ListViewWrapper; or its super classes (declaration of 'anywheresoftware.b4a.objects.ListViewWrapper' appears in /data/app/njdude.compact.actionbar-1/base.apk)
    at njdude.compact.actionbar.compactactionbar._addmenuitem(compactactionbar.java:90)
    at njdude.compact.actionbar.main._activity_create(main.java:364)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:179)
    at njdude.compact.actionbar.main.afterFirstLayout(main.java:102)
    at njdude.compact.actionbar.main.access$000(main.java:17)
    at njdude.compact.actionbar.main$WaitForLayout.run(main.java:80)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6682)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
 

Fabio Campanella

Member
Licensed User
Longtime User
Hi NJDude,
I have a older APP that use your library but don't work because has the same error reported by donnyy.
Can you recompile your library? If not is possible can you give me the source code so i can compile it? Thank you
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
I have a older APP that use your library but don't work because has the same error reported by donnyy.
1. You should start a new thread for your Issue.
2. Post the full error YOU got. An error from 2017 is not relevant here i guess.
3. Post a small project which shows the problem.
 
Upvote 0
Status
Not open for further replies.
Top