ClassDefNotFound error in android

前端 未结 1 2003
情话喂你
情话喂你 2020-12-06 21:47
  new Thread(new Runnable() {
                public void run() {
                    HttpClient client = new DefaultHttpClient();
                    HttpConnection         


        
相关标签:
1条回答
  • 2020-12-06 22:06

    Don't add jar files like that..follow these steps

    You should try this:

    1. Remove all references to the JAR in your project from Java project -> properties -> Java build path -> libraries

    2. Create a libs folder if not exist at the root of your project Copy the JAR into the libs folder.

    3. If still not running OK. Right click your project > Android Tools > Fix Project Properties

    clean your project and run. it will work

    0 讨论(0)
提交回复
热议问题