NoClassDefFoundError in a DirectionalViewPager using

Need help people who used DirectionalViewPager - a library for vertical and horizontal implementation of ViewPager. I do everything as described in the DirectionalViewPager . But after creating a sample android project get

10-02 13:04:03.439: E/AndroidRuntime(1526): FATAL EXCEPTION: main 10-02 13:04:03.439: E/AndroidRuntime(1526): java.lang.NoClassDefFoundError: com.directionalviewpager.DirectionalViewPager$DataSetObserver 10-02 13:04:03.439: E/AndroidRuntime(1526): at com.directionalviewpager.DirectionalViewPager.setAdapter(DirectionalViewPager.java:164) 10-02 13:04:03.439: E/AndroidRuntime(1526): at com.example.verticalview.SampleActivity.onCreate(SampleActivity.java:17) 10-02 13:04:03.439: E/AndroidRuntime(1526): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 10-02 13:04:03.439: E/AndroidRuntime(1526): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615) 10-02 13:04:03.439: E/AndroidRuntime(1526): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667) 10-02 13:04:03.439: E/AndroidRuntime(1526): at android.app.ActivityThread.access$1500(ActivityThread.java:117) 10-02 13:04:03.439: E/AndroidRuntime(1526): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935) 10-02 13:04:03.439: E/AndroidRuntime(1526): at android.os.Handler.dispatchMessage(Handler.java:99) 10-02 13:04:03.439: E/AndroidRuntime(1526): at android.os.Looper.loop(Looper.java:123) 10-02 13:04:03.439: E/AndroidRuntime(1526): at android.app.ActivityThread.main(ActivityThread.java:3687) 10-02 13:04:03.439: E/AndroidRuntime(1526): at java.lang.reflect.Method.invokeNative(Native Method) 10-02 13:04:03.439: E/AndroidRuntime(1526): at java.lang.reflect.Method.invoke(Method.java:507) 10-02 13:04:03.439: E/AndroidRuntime(1526): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867) 10-02 13:04:03.439: E/AndroidRuntime(1526): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625) 10-02 13:04:03.439: E/AndroidRuntime(1526): at dalvik.system.NativeStart.main(Native Method) 

Who dealt with equals, please report something.

+4
source share
1 answer

In addition, this jar in the libs folder should also be exported within your eclipse project settings. This is the same window as the option to add an external jar, but another tab (the latter, I suppose)

I would not add it as an external BTW bar. in Java, a class added twice to the class path will not be loaded. Can't say if this is true for Android.

0
source

Source: https://habr.com/ru/post/1437359/


All Articles