没有发现的Andr​​oid库 [英] Android libraries not found

查看:171
本文介绍了没有发现的Andr​​oid库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Andr​​oid项目,我写一个程序连接到服务器,并在下面,我需要使用的库。

不过,我得到一个错误说下面不能得到解决。如何解决这个问题?我使用Windows上的Eclipse的Java EE。

 进口org.apache.http.entity.mime.MultipartEntity;
 进口org.apache.http.entity.mime.content.ContentBody;
 进口org.apache.http.entity.mime.content.FileBody;
 进口org.apache.http.entity.mime.content.StringBody;
 

解决方案

下载从 Apache的百科全书网站罐子并将其添加到项目和路径。

现在的Apache HttpComponents http://hc.apache.org/downloads.cgi

In my android project I am writing a program to connect to a server and below are the libraries that I need to use.

But I get an error saying the following cannot be resolved. How to resolve this error? I am using eclipse JAVA EE on Windows.

 import org.apache.http.entity.mime.MultipartEntity;
 import org.apache.http.entity.mime.content.ContentBody;
 import org.apache.http.entity.mime.content.FileBody;
 import org.apache.http.entity.mime.content.StringBody;

解决方案

Download the jars from the apache commons site and add them to project and path.

[Edit] now in Apache HttpComponents http://hc.apache.org/downloads.cgi

这篇关于没有发现的Andr​​oid库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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