视频文件发送出错

android
标签: #<Tag:0x00007fca6ac0ac10>

(枯杕) #1

image
JMessageClient.sendMessage(sendMessage);报空指针异常

message里面存在数据

日志:01-15 18:01:25.658 32635-1404/com.w2893097678.zaz D/JIGUANG-JCore: [HttpHelper] status code:200 retry left:2

RuntimeException拦截后没有该日志


#2

将完整的客户端日志提供一下,从初始化到报错

SDK 版本多少,你是怎么创建的消息

调这个 API 创建的视频消息吗?相关参数都传了吗
image


(枯杕) #3
01-15 18:36:37.057 8119-8303/com.w2893097678.zaz D/JIGUANG-JCore: [HttpHelper] status code:200 retry left:2
01-15 18:36:37.858 8119-8132/com.w2893097678.zaz D/JIGUANG-JMessage: [b] processIMData type : network_status_changed
01-15 18:36:38.523 8119-8421/com.w2893097678.zaz D/JIGUANG-JMessage: [b] processIMData type : push_login_status_changed
01-15 18:36:38.533 8119-8421/com.w2893097678.zaz D/JIGUANG-JMessage: [RequestingThread] Action - onLoggedIn
01-15 18:36:38.585 8119-8421/com.w2893097678.zaz I/JIGUANG-JMessage: [RequestProcessor] start SyncCheck
01-15 18:36:38.585 8119-8443/com.w2893097678.zaz D/JIGUANG-JMessage: [RequestingThread] Action - sendRequestInternal - connection:, timeout:60000, threadId:18250
01-15 18:36:38.596 8119-8443/com.w2893097678.zaz D/JIGUANG-JMessage: [RequestingThread] Action - sendCommandWithLoggedIn
01-15 18:36:38.596 8119-8443/com.w2893097678.zaz D/JIGUANG-JMessage: [RequestingThread] request is [Requesting] - timeout:50000, times:1, request:[Request] - [JHead] - len:0, version:1, command:100, rid:11648, sid:10008, juid:18992990104
01-15 18:36:38.596 8119-8443/com.w2893097678.zaz D/JIGUANG-JMessage: [RequestingThread] Request params - cmd:100
01-15 18:36:38.597 375-1104/? D/FrameworkListener: dispatchCommand data = (getaddrinfo sdk.im.jiguang.cn ^ 1024 0 1 0 0)
01-15 18:36:38.598 375-1104/? D/FrameworkListener: dispatchCommand data = (getaddrinfo sdk.im.jiguang.cn ^ 1024 0 1 0 0)
01-15 18:36:38.599 375-1104/? D/FrameworkListener: dispatchCommand data = (getaddrinfo sdk.im.jiguang.cn ^ 1024 0 1 0 0)
01-15 18:36:38.601 8119-8445/com.w2893097678.zaz D/libc-netbsd: getaddrinfo: sdk.im.jiguang.cn get result from proxy gai_error = 0
01-15 18:36:38.601 8119-8452/com.w2893097678.zaz D/libc-netbsd: getaddrinfo: sdk.im.jiguang.cn get result from proxy gai_error = 0
01-15 18:36:38.601 8119-8450/com.w2893097678.zaz D/libc-netbsd: getaddrinfo: sdk.im.jiguang.cn get result from proxy gai_error = 0
01-15 18:36:38.602 8119-8445/com.w2893097678.zaz I/System.out: [socket][11] connection sdk.im.jiguang.cn/106.14.199.188:443;LocalPort=-1(10000)
01-15 18:36:38.602 8119-8450/com.w2893097678.zaz I/System.out: [socket][11] connection sdk.im.jiguang.cn/106.14.199.188:443;LocalPort=-1(10000)
                                                               
                                                               [ 01-15 18:36:38.602  8119: 8445 D/         ]
                                                               [Posix_connect Debug]Process com.w2893097678.zaz :443 
                                                               
                                                               [ 01-15 18:36:38.602  8119: 8450 D/         ]
                                                               [Posix_connect Debug]Process com.w2893097678.zaz :443 
01-15 18:36:38.603 8119-8452/com.w2893097678.zaz I/System.out: [socket][13] connection sdk.im.jiguang.cn/106.14.199.188:443;LocalPort=-1(10000)
                                                               
                                                               [ 01-15 18:36:38.603  8119: 8452 D/         ]
                                                               [Posix_connect Debug]Process com.w2893097678.zaz :443 
01-15 18:36:38.875 8119-8458/com.w2893097678.zaz W/JIGUANG-JMessage: [InternalConversation] get userInfo failed .
01-15 18:36:38.906 8119-8464/com.w2893097678.zaz W/JIGUANG-JMessage: [InternalConversation] get userInfo failed .
01-15 18:36:38.941 8119-8119/com.w2893097678.zaz E/xxxxx: JIGUANG-Example  [MyReceiver] onReceive - cn.jpush.android.intent.CONNECTION, extras: 
                                                          key:cn.jpush.android.APPKEY, value:0d0eee6530276ace5a9713f0
                                                          key:cn.jpush.android.CONNECTION_CHANGE, value:true 
01-15 18:36:38.942 8119-8119/com.w2893097678.zaz E/xxxxx: JIGUANG-Example  [MyReceiver]cn.jpush.android.intent.CONNECTION connected state change to true
01-15 18:36:39.086 8119-8418/com.w2893097678.zaz D/JIGUANG-JMessage: [b] processIMData type : im_response
01-15 18:36:39.096 8119-8418/com.w2893097678.zaz D/JIGUANG-JMessage: [ResponseProcessor] IMCMD:23
01-15 18:36:39.827 8119-8119/com.w2893097678.zaz D/JIGUANG-JCore: [PushReceiver] onReceive - cn.jpush.android.intent.ACTION_REPORT_HISTORY
01-15 18:36:39.870 8119-8471/com.w2893097678.zaz D/JIGUANG-JPush: [AndroidUtil] action:checkValidManifest
01-15 18:36:39.875 8119-8471/com.w2893097678.zaz D/JIGUANG-JPush: [PushReceiverCore] onReceive - cn.jpush.android.intent.ACTION_REPORT_HISTORY
01-15 18:36:40.608 8119-8443/com.w2893097678.zaz D/JIGUANG-JMessage: [RequestingThread] Action - sendRequestInternal - connection:, timeout:60000, threadId:18250
01-15 18:36:40.609 8119-8443/com.w2893097678.zaz D/JIGUANG-JMessage: [RequestingThread] Action - sendCommandWithLoggedIn
01-15 18:36:40.610 8119-8443/com.w2893097678.zaz D/JIGUANG-JMessage: [RequestingThread] request is [Requesting] - timeout:50000, times:1, request:[Request] - [JHead] - len:0, version:1, command:100, rid:11650, sid:10008, juid:18992990104
01-15 18:36:40.610 8119-8443/com.w2893097678.zaz D/JIGUANG-JMessage: [RequestingThread] Request params - cmd:100
01-15 18:36:40.721 8119-8433/com.w2893097678.zaz D/JIGUANG-JMessage: [b] processIMData type : im_response
01-15 18:36:40.725 8119-8433/com.w2893097678.zaz D/JIGUANG-JMessage: [ResponseProcessor] IMCMD:39
01-15 18:36:43.951 8119-8495/com.w2893097678.zaz W/JIGUANG-JMessage: [InternalConversation] get userInfo failed .
01-15 18:36:44.166 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = order value = "664519B0-CBE7-83B8-FFD5"
01-15 18:36:44.167 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = avatar value = "https://fy.sanhedao.com.cn/Upload/face/2019-01-10/cb22d1a4ab881a5324396d8caeb29e6e5c36f37223c76.jpg"
01-15 18:36:44.168 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = order value = "664519B0-CBE7-83B8-FFD5"
01-15 18:36:44.169 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = avatar value = "https://fy.sanhedao.com.cn/Upload/face/2019-01-10/cb22d1a4ab881a5324396d8caeb29e6e5c36f37223c76.jpg"
01-15 18:36:44.170 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = order value = "664519B0-CBE7-83B8-FFD5"
01-15 18:36:44.170 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = avatar value = "https://fy.sanhedao.com.cn/Upload/face/2019-01-10/cb22d1a4ab881a5324396d8caeb29e6e5c36f37223c76.jpg"
01-15 18:36:44.172 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = order value = "664519B0-CBE7-83B8-FFD5"
01-15 18:36:44.172 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = avatar value = "https://fy.sanhedao.com.cn/Upload/face/2019-01-10/cb22d1a4ab881a5324396d8caeb29e6e5c36f37223c76.jpg"
01-15 18:36:44.174 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = order value = "664519B0-CBE7-83B8-FFD5"
01-15 18:36:44.174 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = avatar value = "https://fy.sanhedao.com.cn/Upload/face/2019-01-10/cb22d1a4ab881a5324396d8caeb29e6e5c36f37223c76.jpg"
01-15 18:36:44.176 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = order value = "664519B0-CBE7-83B8-FFD5"
01-15 18:36:44.176 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = avatar value = "https://fy.sanhedao.com.cn/Upload/face/2019-01-10/cb22d1a4ab881a5324396d8caeb29e6e5c36f37223c76.jpg"
01-15 18:36:44.179 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = order value = "664519B0-CBE7-83B8-FFD5"
01-15 18:36:44.179 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = avatar value = "https://fy.sanhedao.com.cn/Upload/face/2019-01-10/cb22d1a4ab881a5324396d8caeb29e6e5c36f37223c76.jpg"
01-15 18:36:44.182 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = order value = "664519B0-CBE7-83B8-FFD5"
01-15 18:36:44.182 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = avatar value = "https://fy.sanhedao.com.cn/Upload/face/2019-01-10/cb22d1a4ab881a5324396d8caeb29e6e5c36f37223c76.jpg"
01-15 18:36:44.184 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = order value = "664519B0-CBE7-83B8-FFD5"
01-15 18:36:44.184 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = avatar value = "https://fy.sanhedao.com.cn/Upload/face/2019-01-10/cb22d1a4ab881a5324396d8caeb29e6e5c36f37223c76.jpg"
01-15 18:36:44.185 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = order value = "664519B0-CBE7-83B8-FFD5"
01-15 18:36:44.186 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = avatar value = "https://fy.sanhedao.com.cn/Upload/face/2019-01-10/cb22d1a4ab881a5324396d8caeb29e6e5c36f37223c76.jpg"
01-15 18:36:44.187 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = order value = "664519B0-CBE7-83B8-FFD5"
01-15 18:36:44.187 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = avatar value = "https://fy.sanhedao.com.cn/Upload/face/2019-01-10/cb22d1a4ab881a5324396d8caeb29e6e5c36f37223c76.jpg"
01-15 18:36:44.188 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = order value = "664519B0-CBE7-83B8-FFD5"
01-15 18:36:44.189 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = avatar value = "https://fy.sanhedao.com.cn/Upload/face/2019-01-10/cb22d1a4ab881a5324396d8caeb29e6e5c36f37223c76.jpg"
01-15 18:36:44.190 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = order value = "664519B0-CBE7-83B8-FFD5"
01-15 18:36:44.190 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = avatar value = "https://fy.sanhedao.com.cn/Upload/face/2019-01-10/cb22d1a4ab881a5324396d8caeb29e6e5c36f37223c76.jpg"
01-15 18:36:44.193 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = order value = "664519B0-CBE7-83B8-FFD5"
01-15 18:36:44.193 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = avatar value = "https://fy.sanhedao.com.cn/Upload/face/2019-01-10/cb22d1a4ab881a5324396d8caeb29e6e5c36f37223c76.jpg"
01-15 18:36:44.194 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = order value = "664519B0-CBE7-83B8-FFD5"
01-15 18:36:44.195 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = avatar value = "https://fy.sanhedao.com.cn/Upload/face/2019-01-10/cb22d1a4ab881a5324396d8caeb29e6e5c36f37223c76.jpg"
01-15 18:36:44.196 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = order value = "664519B0-CBE7-83B8-FFD5"
01-15 18:36:44.197 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = avatar value = "https://fy.sanhedao.com.cn/Upload/face/2019-01-10/cb22d1a4ab881a5324396d8caeb29e6e5c36f37223c76.jpg"
01-15 18:36:44.198 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = order value = "664519B0-CBE7-83B8-FFD5"
01-15 18:36:44.198 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = avatar value = "https://fy.sanhedao.com.cn/Upload/face/2019-01-10/cb22d1a4ab881a5324396d8caeb29e6e5c36f37223c76.jpg"
01-15 18:36:44.199 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = order value = "664519B0-CBE7-83B8-FFD5"
01-15 18:36:44.200 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = avatar value = "https://fy.sanhedao.com.cn/Upload/face/2019-01-10/cb22d1a4ab881a5324396d8caeb29e6e5c36f37223c76.jpg"
01-15 18:36:44.201 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = order value = "664519B0-CBE7-83B8-FFD5"
01-15 18:36:44.201 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = avatar value = "https://fy.sanhedao.com.cn/Upload/face/2019-01-10/cb22d1a4ab881a5324396d8caeb29e6e5c36f37223c76.jpg"
01-15 18:36:44.202 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = order value = "664519B0-CBE7-83B8-FFD5"
01-15 18:36:44.203 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = avatar value = "https://fy.sanhedao.com.cn/Upload/face/2019-01-10/cb22d1a4ab881a5324396d8caeb29e6e5c36f37223c76.jpg"
01-15 18:36:44.204 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = order value = "664519B0-CBE7-83B8-FFD5"
01-15 18:36:44.204 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = avatar value = "https://fy.sanhedao.com.cn/Upload/face/2019-01-10/cb22d1a4ab881a5324396d8caeb29e6e5c36f37223c76.jpg"
01-15 18:36:44.206 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = order value = "664519B0-CBE7-83B8-FFD5"
01-15 18:36:44.206 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = avatar value = "https://fy.sanhedao.com.cn/Upload/face/2019-01-10/cb22d1a4ab881a5324396d8caeb29e6e5c36f37223c76.jpg"
01-15 18:36:44.207 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = order value = "664519B0-CBE7-83B8-FFD5"
01-15 18:36:44.208 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = avatar value = "https://fy.sanhedao.com.cn/Upload/face/2019-01-10/cb22d1a4ab881a5324396d8caeb29e6e5c36f37223c76.jpg"
01-15 18:36:44.209 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = order value = "664519B0-CBE7-83B8-FFD5"
01-15 18:36:44.209 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = avatar value = "https://fy.sanhedao.com.cn/Upload/face/2019-01-10/cb22d1a4ab881a5324396d8caeb29e6e5c36f37223c76.jpg"
01-15 18:36:44.210 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = order value = "664519B0-CBE7-83B8-FFD5"
01-15 18:36:44.211 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = avatar value = "https://fy.sanhedao.com.cn/Upload/face/2019-01-10/cb22d1a4ab881a5324396d8caeb29e6e5c36f37223c76.jpg"
01-15 18:36:44.212 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = order value = "664519B0-CBE7-83B8-FFD5"
01-15 18:36:44.213 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = avatar value = "https://fy.sanhedao.com.cn/Upload/face/2019-01-10/cb22d1a4ab881a5324396d8caeb29e6e5c36f37223c76.jpg"
01-15 18:36:44.214 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = order value = "664519B0-CBE7-83B8-FFD5"
01-15 18:36:44.214 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = avatar value = "https://fy.sanhedao.com.cn/Upload/face/2019-01-10/cb22d1a4ab881a5324396d8caeb29e6e5c36f37223c76.jpg"
01-15 18:36:44.215 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = order value = "664519B0-CBE7-83B8-FFD5"
01-15 18:36:44.216 8119-8119/com.w2893097678.zaz W/JIGUANG-JMessage: [MessageContent] unsupported type of value. key = avatar value = "https://fy.sanhedao.com.cn/Upload/face/2019-01-10/cb22d1a4ab881a5324396d8caeb29e6e5c36f37223c76.jpg"

RuntimeException拦截后没有下面的日志

01-15 18:01:25.658 32635-1404/com.w2893097678.zaz D/JIGUANG-JCore: [HttpHelper] status code:200 retry left:2


#4

看这个提示,不支持的参数


(枯杕) #5

不是这个参数的原因,这些参数是历史消息里面的


(jinfengf) #6

空指针异常具体的报错信息发一下,只是说sendMessage这里,不太好定位


(枯杕) #7

刚才发现好像是位图的原因,刚才传空就能成功

VideoContent videoContent=new VideoContent(null,null,file,photoPath,ti);


(枯杕) #8

但是我单独把位图使用过,可以展示图片


(jinfengf) #9

不要拦截RunTimeException,把报错信息发一下


(枯杕) #10

java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=3004, result=-1, data=Intent { dat=content://com.w2893097678.zaz.fileprovider/fileprovider/XHFWY/Video/1547607946770.mp4 flg=0x1 }} to activity {com.w2893097678.zaz/com.w2893097678.zaz.main.activity.message.ChatActivity}: java.lang.NullPointerException
at android.app.ActivityThread.deliverResults(ActivityThread.java:4431)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4474)
at android.app.ActivityThread.-wrap20(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1742)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:203)
at android.app.ActivityThread.main(ActivityThread.java:6519)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1113)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:974)
Caused by: java.lang.NullPointerException
at java.io.File.(File.java:262)
at cn.jpush.im.android.e.a.b$a.(CompoundContentUploadManager.java)
at cn.jpush.im.android.e.a.b.a(CompoundContentUploadManager.java)
at cn.jpush.im.android.e.a.d.a(FileUploader.java)
at cn.jpush.im.android.b.g.b(InternalMessage.java)
at cn.jpush.im.android.api.JMessageClient.sendMessage(JMessageClient.java)
at cn.jpush.im.android.api.JMessageClient.sendMessage(JMessageClient.java)
at com.w2893097678.zaz.main.activity.message.ChatActivity.jpushVideoSendMessage(ChatActivity.java:1799)
at com.w2893097678.zaz.main.activity.message.ChatActivity.onActivityResult(ChatActivity.java:2101)
at android.app.Activity.dispatchActivityResult(Activity.java:6968)
at android.app.ActivityThread.deliverResults(ActivityThread.java:4427)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4474)
at android.app.ActivityThread.-wrap20(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1742)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:203)
at android.app.ActivityThread.main(ActivityThread.java:6519)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1113)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:974)


(jinfengf) #11

再提供一下完整的日志,我看你上面的日志应该是不完整的


(jinfengf) #12

你这个format传的有问题,只用传格式名jpg,文件名那里也不是填路径,是自定义的文件名,可以看下api文档有对每个参数进行说明


(枯杕) #13

可以了,我以为第二个参数是位图路径,现在是写死了image


(jinfengf) #14

文件名那里也不是填路径,是自定义的文件名


(jinfengf) #15

可以看下api文档有对每个参数进行说明