Reputation: 45
I'm trying to add an animation framework by nhaarman called ListViewAnimations. I have tried adding it to the build path as an external JAR, I have tried coping it to the libs folder and adding it as a JAR though build path, and regardless of what I do, when I run the program, it gives me the following error:
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)
I know this error is because the project cannot find the library, but I'm not sure why.
Any ideas?
Upvotes: 0
Views: 210
Reputation: 45
I figured it out. Seemed to be an issue with the git branch. When I changed it back to the master branch and re-added it it seemed to work.
Very Strange.
Thanks for all the help!
Upvotes: 0
Reputation: 16526
You were doing right adding the jar
to libs
folder, but you have to make sure is not also added to your build path. A full project clean might help as well.
Upvotes: 1