【问题标题】:Problems using third-party library in Android在 Android 中使用第三方库的问题
【发布时间】:2013-08-08 16:02:22
【问题描述】:

我正在使用library to animate ListView。按照程序,我将.jar 文件添加到lib 目录中。这个库还需要另一个名为NineOldAndroids 的库。我也下载了.zip 文件。

9OldAndroids 库是一个项目文件夹。因此,我在 Eclipse 中导入了它,并将其添加到我的构建路径中。 Eclipse 显示来自 9OldAndroids 的包:

但是,在我的手机上运行应用程序时出现异常:

08-08 19:36:13.050: E/dalvikvm(27827): Could not find class 'com.nineoldandroids.animation.Animator[]', referenced from method com.haarman.listviewanimations.swinginadapters.prepared.AlphaInAnimationAdapter.‌​getAnimators  

我该如何解决?

【问题讨论】:

    标签: android android-listview expandablelistview


    【解决方案1】:

    NineOldAndroids 是一个 Android 库项目。你需要attach that Android library project to your main app's project。当您“将其添加到 [您的] 构建路径”时所做的任何事情都可能不是正确的答案。

    【讨论】:

    • 我做了Project -> Properties -> Java Build Path -> Add Class Folder 然后添加了 NineOldAndroids 。
    • @LittleChild:这不是正确的程序。请按照我在答案中链接到的说明撤消该操作。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-12-17
    • 1970-01-01
    • 2020-08-02
    • 1970-01-01
    • 2018-06-21
    • 2017-05-18
    • 1970-01-01
    相关资源
    最近更新 更多