java - NoClassDefFoundError when using Android Volley -


i trying make network request using android volley library:

    stringrequest jsobjrequest = new stringrequest(request.method.get,                 network.getfullurl("/account/login"),                 new listener<string>() {                      @override                     public void onresponse(string response) {                         // todo auto-generated method stub                      }                 }, new errorlistener() {                      @override                     public void onerrorresponse(volleyerror error) {                         // todo auto-generated method stub                      }                 });  network.getinstance(this).addtorequestqueue(jsobjrequest); 

i have included library in build path under projects. , compiles fine,

but when run app following error:

08-18 21:57:05.739: e/androidruntime(22937): fatal exception: main 08-18 21:57:05.739: e/androidruntime(22937): java.lang.noclassdeffounderror:    com.android.volley.toolbox.stringrequest 08-18 21:57:05.739: e/androidruntime(22937):    @ com.fma.mobileapp.loginactivity.attemptlogin(loginactivity.java:173) 08-18 21:57:05.739: e/androidruntime(22937):    @ com.fma.mobileapp.loginactivity$2.onclick(loginactivity.java:94) 08-18 21:57:05.739: e/androidruntime(22937):    @ android.view.view.performclick(view.java:4475) 08-18 21:57:05.739: e/androidruntime(22937):    @ android.view.view$performclick.run(view.java:18786) 08-18 21:57:05.739: e/androidruntime(22937):    @ android.os.handler.handlecallback(handler.java:730) 08-18 21:57:05.739: e/androidruntime(22937):    @ android.os.handler.dispatchmessage(handler.java:92) 08-18 21:57:05.739: e/androidruntime(22937):    @ android.os.looper.loop(looper.java:137) 08-18 21:57:05.739: e/androidruntime(22937):    @ android.app.activitythread.main(activitythread.java:5419) 08-18 21:57:05.739: e/androidruntime(22937):    @ java.lang.reflect.method.invokenative(native method) 08-18 21:57:05.739: e/androidruntime(22937):    @ java.lang.reflect.method.invoke(method.java:525) 08-18 21:57:05.739: e/androidruntime(22937):    @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1209) 08-18 21:57:05.739: e/androidruntime(22937):    @ com.android.internal.os.zygoteinit.main(zygoteinit.java:1025) 08-18 21:57:05.739: e/androidruntime(22937):    @ dalvik.system.nativestart.main(native method) 

[edit}

i using latest version of android sdk

im working volley library, might need reference:

referencing library project


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -