Android Twitter4j giving error NoClassDefFoundError: twitter4j.TwitterFactory

前端 未结 6 715
一个人的身影
一个人的身影 2021-01-01 04:26

I am making an app that communicates with Twitter to post a tweet. My problem is that when compile my code, I get the error message:

NoClassDefFoundError: tw         


        
6条回答
  •  清酒与你
    2021-01-01 04:39

    I found that I Imported Twitter4J the incorrect way. So what I proceeded to do was remove it from my build path then copy twitter4j-core-4.0.2.jar to my libs folder then restart eclipse and add the jar in my libs to my build path. All was sorted thereafter.

提交回复
热议问题