使用泽西库中的Andr​​oid项目 [英] use Jersey Library in a Android project

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

问题描述

我尝试实施通过泽西库的android一个宁静的客户端。它的工作原理pretty以及在Java项目。但是,当我在一个Android项目做,总是能想出一个例外:找不到类com.sun.jersey.api.client.config ......看来,库无法竟然发现我将它在构建路径。

I try to implement a restful client on android via Jersey library. It works pretty well in a Java project. But when I do it in a android project, always come up an exception: could not find class "com.sun.jersey.api.client.config...." It seems that the library cannot be found even I have added it in the build path.

推荐答案

我相信目前泽西没有移植到Android。但是,例如它的Restlet明确支持Android和也实现了相同的API(JAX-RS)。

I believe Jersey currently is not ported to Android. But for example Restlet does explicitly support Android and also implements the same API (JAX-RS).

这篇关于使用泽西库中的Andr​​oid项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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