java - BottomSheet Library -
i trying implement bottomsheet library located here. have followed instruction application getting crashed when try open bottosheet menu.
my java code implement bottomsheet below
findviewbyid(r.id.butshare).setonclicklistener(new view.onclicklistener() { @override public void onclick(view v) { new bottomsheet.builder(quoteviewactivity.this).title("title").sheet(r.menu.menu).listener(new dialoginterface.onclicklistener() { @override public void onclick(dialoginterface dialog, int which) { switch (which) { case r.id.help: //q.toast("help me!"); break; } } }).show(); } });
and menu xml below
<menu xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@+id/share" android:title="@string/facebook" android:icon="@drawable/new_facebook_page"/> <item android:id="@+id/upload" android:title="@string/twitter" android:icon="@drawable/new_facebook_page"/> <item android:id="@+id/call" android:title="@string/image" android:icon="@drawable/new_facebook_page"/> <group android:id="@+id/helpgroup"> <item android:id="@+id/help" android:title="@string/whatsapp" android:icon="@drawable/new_facebook_page"/> </group>
my logcat same below
06-29 16:26:48.267: e/androidruntime(6856): fatal exception: main 06-29 16:26:48.267: e/androidruntime(6856): process: com.vmapps.quotesking, pid: 6856 06-29 16:26:48.267: e/androidruntime(6856): java.lang.noclassdeffounderror: failed resolution of: lcom/cocosw/bottomsheet/r$styleable; 06-29 16:26:48.267: e/androidruntime(6856): @ com.cocosw.bottomsheet.bottomsheet.<init>(bottomsheet.java:103) 06-29 16:26:48.267: e/androidruntime(6856): @ com.cocosw.bottomsheet.bottomsheet$builder.build(bottomsheet.java:710) 06-29 16:26:48.267: e/androidruntime(6856): @ com.cocosw.bottomsheet.bottomsheet$builder.show(bottomsheet.java:675) 06-29 16:26:48.267: e/androidruntime(6856): @ com.vmapps.quotesking.material.quoteviewactivity$4.onclick(quoteviewactivity.java:185) 06-29 16:26:48.267: e/androidruntime(6856): @ android.view.view.performclick(view.java:5076) 06-29 16:26:48.267: e/androidruntime(6856): @ android.view.view$performclick.run(view.java:20279) 06-29 16:26:48.267: e/androidruntime(6856): @ android.os.handler.handlecallback(handler.java:739) 06-29 16:26:48.267: e/androidruntime(6856): @ android.os.handler.dispatchmessage(handler.java:95) 06-29 16:26:48.267: e/androidruntime(6856): @ android.os.looper.loop(looper.java:135) 06-29 16:26:48.267: e/androidruntime(6856): @ android.app.activitythread.main(activitythread.java:5930) 06-29 16:26:48.267: e/androidruntime(6856): @ java.lang.reflect.method.invoke(native method) 06-29 16:26:48.267: e/androidruntime(6856): @ java.lang.reflect.method.invoke(method.java:372) 06-29 16:26:48.267: e/androidruntime(6856): @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1405) 06-29 16:26:48.267: e/androidruntime(6856): @ com.android.internal.os.zygoteinit.main(zygoteinit.java:1200) 06-29 16:26:48.267: e/androidruntime(6856): caused by: java.lang.classnotfoundexception: didn't find class "com.cocosw.bottomsheet.r$styleable" on path: dexpathlist[[zip file "/data/app/com.vmapps.quotesking-1/base.apk"],nativelibrarydirectories=[/vendor/lib, /system/lib]] 06-29 16:26:48.267: e/androidruntime(6856): @ dalvik.system.basedexclassloader.findclass(basedexclassloader.java:56) 06-29 16:26:48.267: e/androidruntime(6856): @ java.lang.classloader.loadclass(classloader.java:511) 06-29 16:26:48.267: e/androidruntime(6856): @ java.lang.classloader.loadclass(classloader.java:469) 06-29 16:26:48.267: e/androidruntime(6856): ... 14 more 06-29 16:26:48.267: e/androidruntime(6856): suppressed: java.lang.classnotfoundexception: com.cocosw.bottomsheet.r$styleable 06-29 16:26:48.267: e/androidruntime(6856): @ java.lang.class.classforname(native method) 06-29 16:26:48.267: e/androidruntime(6856): @ java.lang.bootclassloader.findclass(classloader.java:781) 06-29 16:26:48.267: e/androidruntime(6856): @ java.lang.bootclassloader.loadclass(classloader.java:841) 06-29 16:26:48.267: e/androidruntime(6856): @ java.lang.classloader.loadclass(classloader.java:504) 06-29 16:26:48.267: e/androidruntime(6856): ... 15 more 06-29 16:26:48.267: e/androidruntime(6856): caused by: java.lang.noclassdeffounderror: class not found using boot class loader; no stack available
thanks
Comments
Post a Comment