• ListViewAnimations使用时报错NoClassDefFoundError: com.nineoldandroids.animation.Animator


    https://github.com/nhaarman/ListViewAnimations/issues/294

    解决:

    Add this to your dependencies in your gradle build file:

    compile 'com.nineoldandroids:library:2.4.0'
    

    So it will probably look something like like this:

    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
        compile 'com.nhaarman.listviewanimations:lib-core:3.1.0@aar'
        compile 'com.nhaarman.listviewanimations:lib-manipulation:3.1.0@aar'
        compile 'com.nhaarman.listviewanimations:lib-core-slh:3.1.0@aar'
        compile 'com.nineoldandroids:library:2.4.0'  //多加一个这个
    }
    原因:

    It is interesting that gradle is not adding the transitive nineoldandroids dependency. The POM in Maven Central seems to be correct. I just ran gradle dependencies and it indeed not listed the transitive dep:

    compile - Classpath for compiling the main sources.
    +--- com.nhaarman.listviewanimations:lib-core:3.1.0
    

    Maybe we are facing a gradle bug here? I also tried with a simple java project, and with jar packaging i got the same result.


    gradle 不会识别


    版权声明:本文为博主原创文章,未经博主允许不得转载。

  • 相关阅读:
    C#编写的windows程序随系统启动
    CentOS 6.0修改ssh远程连接端口
    C# 控件缩写大全+命名规范+示例
    记录点滴
    C++封装,继承,多态,友元
    策略模式
    OpenGL入门
    C++四种类型转换
    观察者模式Observer Pattern
    双向链表std::list和单向链表std::forward_list
  • 原文地址:https://www.cnblogs.com/france/p/4808557.html
Copyright © 2020-2023  润新知