4
需要人員的幫助,他們使用DirectionalViewPager - 庫實現垂直和水平ViewPager實現。我做了所有事情,如DirectionalViewPager所述。 但樣品的Android項目的創建後,即可獲取DirectionalViewPager上的NoClassDefFoundError使用
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)
誰與平等有經營業務,請告知東西。
你檢查過你的依賴嗎?並做一個項目乾淨? – XepterX
是否位於libs文件夾中的orientationviewpager.jar不在lib中? –
是的,它位於libs文件夾中,我將它作爲庫添加爲外部jar。它也位於依賴關係... –