论坛首页 移动开发技术论坛

Android腾讯微薄客户端开发十五:终结篇(分享源代码)

浏览 91561 次
该帖已经被评为精华帖
作者 正文
   发表时间:2011-11-05  
hkingsoft 写道
引用
11-05 03:24:28.679: D/dalvikvm(1632): GC_EXTERNAL_ALLOC freed 67K, 52% free 2627K/5379K, external 793K/1051K, paused 35ms
11-05 03:24:43.729: E/dalvikvm(1632): Could not find class 'org.apache.commons.httpclient.HttpClient', referenced from method com.mime.qweibo.QHttpClient.httpGet
11-05 03:24:43.729: W/dalvikvm(1632): VFY: unable to resolve new-instance 271 (Lorg/apache/commons/httpclient/HttpClient;) in Lcom/mime/qweibo/QHttpClient;
11-05 03:24:43.729: D/dalvikvm(1632): VFY: replacing opcode 0x22 at 0x0022
11-05 03:24:43.739: D/dalvikvm(1632): VFY: dead code 0x0024-0071 in Lcom/mime/qweibo/QHttpClient;.httpGet (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
11-05 03:24:43.739: E/dalvikvm(1632): Could not find class 'org.apache.commons.httpclient.HttpClient', referenced from method com.mime.qweibo.QHttpClient.httpPost
11-05 03:24:43.739: W/dalvikvm(1632): VFY: unable to resolve new-instance 271 (Lorg/apache/commons/httpclient/HttpClient;) in Lcom/mime/qweibo/QHttpClient;
11-05 03:24:43.739: D/dalvikvm(1632): VFY: replacing opcode 0x22 at 0x0001
11-05 03:24:43.739: D/dalvikvm(1632): VFY: dead code 0x0003-006d in Lcom/mime/qweibo/QHttpClient;.httpPost (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
11-05 03:24:43.749: E/dalvikvm(1632): Could not find class 'org.apache.commons.httpclient.HttpClient', referenced from method com.mime.qweibo.QHttpClient.httpPostWithFile
11-05 03:24:43.749: W/dalvikvm(1632): VFY: unable to resolve new-instance 271 (Lorg/apache/commons/httpclient/HttpClient;) in Lcom/mime/qweibo/QHttpClient;
11-05 03:24:43.749: D/dalvikvm(1632): VFY: replacing opcode 0x22 at 0x001b
11-05 03:24:43.749: D/dalvikvm(1632): VFY: dead code 0x001d-00d3 in Lcom/mime/qweibo/QHttpClient;.httpPostWithFile (Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)Ljava/lang/String;
11-05 03:24:43.749: D/AndroidRuntime(1632): Shutting down VM
11-05 03:24:43.749: W/dalvikvm(1632): threadid=1: thread exiting with uncaught exception (group=0x40015560)
11-05 03:24:43.769: E/AndroidRuntime(1632): FATAL EXCEPTION: main
11-05 03:24:43.769: E/AndroidRuntime(1632): java.lang.NoClassDefFoundError: org.apache.commons.httpclient.HttpClient
11-05 03:24:43.769: E/AndroidRuntime(1632): at com.mime.qweibo.QHttpClient.httpGet(QHttpClient.java:43)
11-05 03:24:43.769: E/AndroidRuntime(1632): at com.mime.qweibo.QWeiboRequest.syncRequest(QWeiboRequest.java:45)
11-05 03:24:43.769: E/AndroidRuntime(1632): at com.mime.qweibo.examples.QWeiboSyncApi.getRequestToken(QWeiboSyncApi.java:37)
11-05 03:24:43.769: E/AndroidRuntime(1632): at com.mime.qweibo.examples.MyWeiboSync.getRequestToken(MyWeiboSync.java:50)
11-05 03:24:43.769: E/AndroidRuntime(1632): at com.android.caigang.view.AccountActivity.onClick(AccountActivity.java:153)
11-05 03:24:43.769: E/AndroidRuntime(1632): at android.view.View.performClick(View.java:2485)
11-05 03:24:43.769: E/AndroidRuntime(1632): at android.view.View$PerformClick.run(View.java:9088)
11-05 03:24:43.769: E/AndroidRuntime(1632): at android.os.Handler.handleCallback(Handler.java:587)
11-05 03:24:43.769: E/AndroidRuntime(1632): at android.os.Handler.dispatchMessage(Handler.java:92)
11-05 03:24:43.769: E/AndroidRuntime(1632): at android.os.Looper.loop(Looper.java:123)
11-05 03:24:43.769: E/AndroidRuntime(1632): at android.app.ActivityThread.main(ActivityThread.java:3647)
11-05 03:24:43.769: E/AndroidRuntime(1632): at java.lang.reflect.Method.invokeNative(Native Method)
11-05 03:24:43.769: E/AndroidRuntime(1632): at java.lang.reflect.Method.invoke(Method.java:507)
11-05 03:24:43.769: E/AndroidRuntime(1632): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
11-05 03:24:43.769: E/AndroidRuntime(1632): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
11-05 03:24:43.769: E/AndroidRuntime(1632): at dalvik.system.NativeStart.main(Native Method)
11-05 03:29:43.829: I/Process(1632): Sending signal. PID: 1632 SIG: 9
11-05 03:31:46.849: D/dalvikvm(1765): GC_EXTERNAL_ALLOC freed 74K, 52% free 2627K/5379K, external 793K/1051K, paused 81ms
11-05 03:32:01.139: E/dalvikvm(1765): Could not find class 'org.apache.commons.httpclient.HttpClient', referenced from method com.mime.qweibo.QHttpClient.httpGet
11-05 03:32:01.139: W/dalvikvm(1765): VFY: unable to resolve new-instance 271 (Lorg/apache/commons/httpclient/HttpClient;) in Lcom/mime/qweibo/QHttpClient;
11-05 03:32:01.139: D/dalvikvm(1765): VFY: replacing opcode 0x22 at 0x0022
11-05 03:32:01.139: D/dalvikvm(1765): VFY: dead code 0x0024-0071 in Lcom/mime/qweibo/QHttpClient;.httpGet (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
11-05 03:32:01.139: E/dalvikvm(1765): Could not find class 'org.apache.commons.httpclient.HttpClient', referenced from method com.mime.qweibo.QHttpClient.httpPost
11-05 03:32:01.139: W/dalvikvm(1765): VFY: unable to resolve new-instance 271 (Lorg/apache/commons/httpclient/HttpClient;) in Lcom/mime/qweibo/QHttpClient;
11-05 03:32:01.139: D/dalvikvm(1765): VFY: replacing opcode 0x22 at 0x0001
11-05 03:32:01.139: D/dalvikvm(1765): VFY: dead code 0x0003-006d in Lcom/mime/qweibo/QHttpClient;.httpPost (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
11-05 03:32:01.139: E/dalvikvm(1765): Could not find class 'org.apache.commons.httpclient.HttpClient', referenced from method com.mime.qweibo.QHttpClient.httpPostWithFile
11-05 03:32:01.149: W/dalvikvm(1765): VFY: unable to resolve new-instance 271 (Lorg/apache/commons/httpclient/HttpClient;) in Lcom/mime/qweibo/QHttpClient;
11-05 03:32:01.149: D/dalvikvm(1765): VFY: replacing opcode 0x22 at 0x001b
11-05 03:32:01.149: D/dalvikvm(1765): VFY: dead code 0x001d-00d3 in Lcom/mime/qweibo/QHttpClient;.httpPostWithFile (Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)Ljava/lang/String;
11-05 03:32:01.149: D/AndroidRuntime(1765): Shutting down VM
11-05 03:32:01.159: W/dalvikvm(1765): threadid=1: thread exiting with uncaught exception (group=0x40015560)
11-05 03:32:01.170: E/AndroidRuntime(1765): FATAL EXCEPTION: main
11-05 03:32:01.170: E/AndroidRuntime(1765): java.lang.NoClassDefFoundError: org.apache.commons.httpclient.HttpClient
11-05 03:32:01.170: E/AndroidRuntime(1765): at com.mime.qweibo.QHttpClient.httpGet(QHttpClient.java:43)
11-05 03:32:01.170: E/AndroidRuntime(1765): at com.mime.qweibo.QWeiboRequest.syncRequest(QWeiboRequest.java:45)
11-05 03:32:01.170: E/AndroidRuntime(1765): at com.mime.qweibo.examples.QWeiboSyncApi.getRequestToken(QWeiboSyncApi.java:37)
11-05 03:32:01.170: E/AndroidRuntime(1765): at com.mime.qweibo.examples.MyWeiboSync.getRequestToken(MyWeiboSync.java:50)
11-05 03:32:01.170: E/AndroidRuntime(1765): at com.android.caigang.view.AccountActivity.onClick(AccountActivity.java:153)
11-05 03:32:01.170: E/AndroidRuntime(1765): at android.view.View.performClick(View.java:2485)
11-05 03:32:01.170: E/AndroidRuntime(1765): at android.view.View$PerformClick.run(View.java:9088)
11-05 03:32:01.170: E/AndroidRuntime(1765): at android.os.Handler.handleCallback(Handler.java:587)
11-05 03:32:01.170: E/AndroidRuntime(1765): at android.os.Handler.dispatchMessage(Handler.java:92)
11-05 03:32:01.170: E/AndroidRuntime(1765): at android.os.Looper.loop(Looper.java:123)
11-05 03:32:01.170: E/AndroidRuntime(1765): at android.app.ActivityThread.main(ActivityThread.java:3647)
11-05 03:32:01.170: E/AndroidRuntime(1765): at java.lang.reflect.Method.invokeNative(Native Method)
11-05 03:32:01.170: E/AndroidRuntime(1765): at java.lang.reflect.Method.invoke(Method.java:507)
11-05 03:32:01.170: E/AndroidRuntime(1765): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
11-05 03:32:01.170: E/AndroidRuntime(1765): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
11-05 03:32:01.170: E/AndroidRuntime(1765): at dalvik.system.NativeStart.main(Native Method)
11-05 03:32:02.869: I/Process(1765): Sending signal. PID: 1765 SIG: 9

点击添加帐号时出现此错误 是什么原因

哈哈 写的试试看看
0 请登录后投票
   发表时间:2011-11-06  
今天才看到这帖子,很不错正好作为下一步学习材料,非常感谢
0 请登录后投票
   发表时间:2011-11-07  
看看,学习下,最近刚开始琢磨android
0 请登录后投票
   发表时间:2011-11-07  
研究你的源码看看,谢谢!
0 请登录后投票
   发表时间:2011-11-08  
楼主霸气啊
0 请登录后投票
   发表时间:2011-11-08  
非常感谢楼主分享
0 请登录后投票
   发表时间:2011-11-09  
lzV5,学习了
0 请登录后投票
   发表时间:2011-11-09  
怎么授权呀?
0 请登录后投票
   发表时间:2011-11-09  
怎么授权啊?
0 请登录后投票
   发表时间:2011-11-10  
申请了自己的key,也按照楼主说的修改了,点击主界面添加账号弹出新界面中间没有出现用户名和密码的输入框:

浏览页面出错。
没有oauth_token 或 oauth_token不合法,请返回重试。
0 请登录后投票
论坛首页 移动开发技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics