【问题标题】:Restlets GAE AndroidRestlets GAE Android
【发布时间】:2012-11-22 19:39:49
【问题描述】:

我无法运行the following Android samplehttp://wiki.restlet.org/docs_2.0/13-restlet/21-restlet/318-restlet/303-restlet.html

我在 64 位 Ubuntu 12.10 上使用 Eclipse Juno 4.2 并尝试在 api Level 15 上部署(Android 4.03 模拟器和真实设备)

我刚刚在我的工作区中导入了示例项目(来自现有源的 Android 项目)并将 org.restlet.jar(来自 restlet-android-2.0.15)添加到我的类路径中,如上所述。

在以下行我得到一个异常:

ClientResource cr = new ClientResource(
    "http://restlet-example-serialization.appspot.com/contacts/123");

例外:

java.lang.reflect.InvocationTargetException
java.lang.NoClassDefFoundError: org.restlet.resource.ClientResource

有人可以指导我如何解决这个问题吗?

【问题讨论】:

    标签: java android eclipse google-app-engine


    【解决方案1】:

    我能够让它运行,但对我来说并不是很清楚。

    我从类路径中删除了 org.restlet.jar 并添加了源文件夹。

    【讨论】:

    • 链接源文件夹只是解决了我的问题,因为我现在需要 Codehaus-Jackson 库来进行更复杂的序列化,因此 SDK 中没有附加代码
    猜你喜欢
    • 2012-11-13
    • 1970-01-01
    • 2011-04-25
    • 2012-03-02
    • 2013-07-31
    • 1970-01-01
    • 2013-12-07
    • 1970-01-01
    • 2014-06-27
    相关资源
    最近更新 更多