Android Question SlidingMenu error : java.lang.NoSuchMethodError: No virtual method AddTwoLinesAndBitmap2(Ljava/lang/...

abonvici

Member
Licensed User
Hi all,
thak you for your support.
I am totally new to b4a and try to experiment.
First library was SS_SlidingMenuStandard i downloaded form forum . but it gives such a crash

** Activity (main) Create, isFirst = true **
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 base.apk)
at com.simplysoftware.slidingmenustandard.slidingmenustd._additem(slidingmenustd.java:61)
at com.simplysoftware.slidingmenustandard.main._buildmenu(main.java:430)
at com.simplysoftware.slidingmenustandard.main._activity_create(main.java:411)
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 com.simplysoftware.slidingmenustandard.main.afterFirstLayout(main.java:105)
at com.simplysoftware.slidingmenustandard.main.access$000(main.java:17)
at com.simplysoftware.slidingmenustandard.main$WaitForLayout.run(main.java:83)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6669)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
** Activity (main) Resume **

SOmeone says that the soruces must be recompilied but the author did not give the sources..


So may you give me some hint to fix?

Thank you all in advanc e
Alessandro
 

abonvici

Member
Licensed User
Thank you very much.
I followed your suggestion and found the the B4X...library are very beautiful
So ,, thank you again for your precious work
 
Upvote 0

mojako

Member
Licensed User
Use B4XDrawer.
Hi Erel,
I'm Still have no luck..
I already add B4XDrawer, but problem still the same

** Activity (main) Create, isFirst = true **
slidingmenustd_additem (java line: 61)
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/~~KbPsIE4-9RrksmrWeErbwg==/com.simplysoftware.slidingmenustandard-LQkB9mW1mgZwIOxnRFrr6w==/base.apk)
at com.simplysoftware.slidingmenustandard.slidingmenustd._additem(slidingmenustd.java:61)
at com.simplysoftware.slidingmenustandard.main._buildmenu(main.java:426)
at com.simplysoftware.slidingmenustandard.main._activity_create(main.java:368)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
at com.simplysoftware.slidingmenustandard.main.afterFirstLayout(main.java:105)
at com.simplysoftware.slidingmenustandard.main.access$000(main.java:17)
at com.simplysoftware.slidingmenustandard.main$WaitForLayout.run(main.java:83)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7697)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:952)
slidingmenustd_additem (java line: 61)
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/~~KbPsIE4-9RrksmrWeErbwg==/com.simplysoftware.slidingmenustandard-LQkB9mW1mgZwIOxnRFrr6w==/base.apk)
at com.simplysoftware.slidingmenustandard.slidingmenustd._additem(slidingmenustd.java:61)
at com.simplysoftware.slidingmenustandard.main._buildmenu(main.java:426)
at com.simplysoftware.slidingmenustandard.main._activity_create(main.java:368)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
at com.simplysoftware.slidingmenustandard.main.afterFirstLayout(main.java:105)
at com.simplysoftware.slidingmenustandard.main.access$000(main.java:17)
at com.simplysoftware.slidingmenustandard.main$WaitForLayout.run(main.java:83)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7697)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:952)

please advise..
 
Upvote 0
Top