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 不会识别


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

相关文章:

  • 2022-12-23
  • 2021-09-24
  • 2021-10-22
  • 2022-12-23
  • 2022-12-23
  • 2021-10-15
  • 2021-12-16
  • 2021-11-29
猜你喜欢
  • 2021-10-01
  • 2021-06-24
  • 2022-12-23
  • 2021-12-08
  • 2021-07-21
  • 2021-05-15
  • 2021-09-15
相关资源
相似解决方案