Could not find class oauth.signpost.commonshttp.CommonsHttpOAuthConsumer

天涯浪子 提交于 2019-12-03 23:01:42

问题


I had to format and start over yesterday, and I'm trying to get my project up and running again.

I use the signpost library for OAuth authentication. I've imported my project and Eclipse gives me no errors in the text editor. However, when I run my app and hit the oauth code, my app bombs with the following error:

04-25 15:07:04.485: E/dalvikvm(344): Could not find class 'oauth.signpost.commonshttp.CommonsHttpOAuthConsumer', referenced from method com.myapp.app.ws.WebService.addHeaders

The project seems to find the jar files just fine. They show up in the Java Build Path -> Libraries tab.

I'm not really sure what I'm missing here. Ideas?


回答1:


My guess is that this error is related to ADT 17. Its expected to put the jars into the libs folder now. If you dont do that go to configure build path->Order and Export. Click the checkbox for your jar.



来源:https://stackoverflow.com/questions/10323069/could-not-find-class-oauth-signpost-commonshttp-commonshttpoauthconsumer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!