我正在尝试通过nhaarman添加一个名为 ListViewAnimations 的动画框架。我尝试将它作为外部 JAR 添加到构建路径中,我尝试将其复制到 libs 文件夹并通过构建路径将其添加为 JAR,并且无论我做什么,当我运行程序时,它都会给我以下错误:
10-08 17:20:59.044: E/AndroidRuntime(2024): FATAL EXCEPTION: main
10-08 17:20:59.044: E/AndroidRuntime(2024): java.lang.NoClassDefFoundError: com.haarman.listviewanimations.swinginadapters.prepared.AlphaInAnimationAdapter
10-08 17:20:59.044: E/AndroidRuntime(2024): at com.fthatnoise.borrow.me.BorrowMeHome.onCreate(BorrowMeHome.java:71)
10-08 17:20:59.044: E/AndroidRuntime(2024): at android.app.Activity.performCreate(Activity.java:5104)
10-08 17:20:59.044: E/AndroidRuntime(2024): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
10-08 17:20:59.044: E/AndroidRuntime(2024): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
10-08 17:20:59.044: E/AndroidRuntime(2024): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
10-08 17:20:59.044: E/AndroidRuntime(2024): at android.app.ActivityThread.access$600(ActivityThread.java:141)
10-08 17:20:59.044: E/AndroidRuntime(2024): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
10-08 17:20:59.044: E/AndroidRuntime(2024): at android.os.Handler.dispatchMessage(Handler.java:99)
10-08 17:20:59.044: E/AndroidRuntime(2024): at android.os.Looper.loop(Looper.java:137)
10-08 17:20:59.044: E/AndroidRuntime(2024): at android.app.ActivityThread.main(ActivityThread.java:5041)
10-08 17:20:59.044: E/AndroidRuntime(2024): at java.lang.reflect.Method.invokeNative(Native Method)
10-08 17:20:59.044: E/AndroidRuntime(2024): at java.lang.reflect.Method.invoke(Method.java:511)
10-08 17:20:59.044: E/AndroidRuntime(2024): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
10-08 17:20:59.044: E/AndroidRuntime(2024): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
10-08 17:20:59.044: E/AndroidRuntime(2024): at dalvik.system.NativeStart.main(Native Method)
我知道这个错误是因为项目找不到库,但我不知道为什么。
有任何想法吗?