Android Twitter4j giving error NoClassDefFoundError: twitter4j.TwitterFactory

前端 未结 6 706
一个人的身影
一个人的身影 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:36

    Create a folder named libs inside the root directory of your project and put twitter4j jar inside.

    Then include new jar via Project Properties -> Java Build Path -> Libraries -> Add Jars.

    Remove any old reference to twitter4j jars.

    Clean and launch.

提交回复
热议问题