找不到android.support.v4.view.ViewPager
网上找了3种解决的方法:
1、我是通过项目 -> 属性 -> Java Build Path -> Add External JARs添加了android-support-v4.jar包的,解决只需要项目 -> 属性 -> Java Build Path -> Remove该jar,直接将jar包复制到项目的libs目录下即可。因为项目libs下的jar包会自动导入项目,不需要手动导入。 http://www.cnblogs.com/trinea/archive/2012/11/16/2771062.html
2、SDK升级后,V4包会找不到报错,右键libs包设置 build path 选use as source folder,再把 jar包 add to build path,就ok了 http://blog.csdn.net/zengzhongxiang/article/details/7920711
3、在项目的properties中的Java Build Path里将Order and Export里的android-support-v4.jar勾选上。 http://www.apkbus.com/android-73371-1-1.html
------------------------------
错误: 04-19 12:01:20.883: E/AndroidRuntime(871): Caused by: java.lang.ClassNotFoundException: Didn‘t find class "android.support.v4.view.ViewPager" on path: /data/app/********.apk 04-19 12:01:20.883: E/AndroidRuntime(871): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65) 04-19 12:01:20.883: E/AndroidRuntime(871): at java.lang.ClassLoader.loadClass(ClassLoader.java:501) 04-19 12:01:20.883: E/AndroidRuntime(871): at java.lang.ClassLoader.loadClass(ClassLoader.java:461) 04-19 12:01:20.883: E/AndroidRuntime(871): at android.view.LayoutInflater.createView(LayoutInflater.java:552) 04-19 12:01:20.883: E/AndroidRuntime(871): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687) 04-19 12:01:20.883: E/AndroidRuntime(871): ... 20 more
转载自:http://blog.csdn.net/nj_liuzl/article/details/8825855#comments
找不到android.support.v4.view.ViewPager,布布扣,bubuko.com
找不到android.support.v4.view.ViewPager
原文:http://www.cnblogs.com/shiyeguiji/p/3668714.html