MultipartEntity崩溃我的应用程序 [英] MultipartEntity crashes my app

查看:299
本文介绍了MultipartEntity崩溃我的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不确定为什么会出现这种情况,但此行code的崩溃我在调试或运行模式应用程序:

Unsure why this would be the case, but this line of code crashes my app in Debug or Run mode:

MultipartEntity multipartEntity = new MultipartEntity(HttpMultipartMode.BROWSER_COMPATIBLE);  

有没有许可或我做错了一些其他东西使用此?

Is there a permission or some other thing I am doing wrong by using this?

我建立为Android 2.1,并使用Apache的mime4j-DOM-0.7.2.jar和httpmime-4.1.3.jar。

I am building for Android 2.1 and using apache-mime4j-dom-0.7.2.jar and httpmime-4.1.3.jar.

推荐答案

这只是一个猜测,但我认为你的问题是关系到新版本的ADT。由于ADT的17罐需要被放入libs文件夹或他们不会用APK包装。

This is just a guess but i think your problem is related to the new ADT version. As of ADT 17 jars need to be put into the libs folder or they wont be packaged with the apk.

因此​​,要么把它们放进库或进入配置构建路径.. - >排序和导出,并点击复选框您的罐子旁边的

So either put them into libs or go to "configure Build Path.."->"Order and Export" and click the checkboxes next to your jars.

这篇关于MultipartEntity崩溃我的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆