04-10 18:57:54.656: E/AndroidRuntime(6346): FATAL EXCEPTION: main
04-10 18:57:54.656: E/AndroidRuntime(6346): java.lang.RuntimeException: Unable to start activity ComponentInfo{cn.learn.tabhosttest/cn.learn.tabhosttest.ViewPagerActivity}: android.view.InflateException: Binary XML file line #16: Error inflating class android.support.v4.view.ViewPager
04-10 18:57:54.656: E/AndroidRuntime(6346): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2358)
04-10 18:57:54.656: E/AndroidRuntime(6346): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2410)
04-10 18:57:54.656: E/AndroidRuntime(6346): at android.app.ActivityThread.access$600(ActivityThread.java:168)
04-10 18:57:54.656: E/AndroidRuntime(6346): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1376)
04-10 18:57:54.656: E/AndroidRuntime(6346): at android.os.Handler.dispatchMessage(Handler.java:107)
04-10 18:57:54.656: E/AndroidRuntime(6346): at android.os.Looper.loop(Looper.java:194)
04-10 18:57:54.656: E/AndroidRuntime(6346): at android.app.ActivityThread.main(ActivityThread.java:5398)
04-10 18:57:54.656: E/AndroidRuntime(6346): at java.lang.reflect.Method.invokeNative(Native Method)
04-10 18:57:54.656: E/AndroidRuntime(6346): at java.lang.reflect.Method.invoke(Method.java:525)
04-10 18:57:54.656: E/AndroidRuntime(6346): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:836)
04-10 18:57:54.656: E/AndroidRuntime(6346): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:603)
04-10 18:57:54.656: E/AndroidRuntime(6346): at dalvik.system.NativeStart.main(Native Method)
04-10 18:57:54.656: E/AndroidRuntime(6346): Caused by: android.view.InflateException: Binary XML file line #16: Error inflating class android.support.v4.view.ViewPager
04-10 18:57:54.656: E/AndroidRuntime(6346): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:698)
04-10 18:57:54.656: E/AndroidRuntime(6346): at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
04-10 18:57:54.656: E/AndroidRuntime(6346): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
04-10 18:57:54.656: E/AndroidRuntime(6346): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
04-10 18:57:54.656: E/AndroidRuntime(6346): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
04-10 18:57:54.656: E/AndroidRuntime(6346): at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
04-10 18:57:54.656: E/AndroidRuntime(6346): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:277)
04-10 18:57:54.656: E/AndroidRuntime(6346): at android.app.Activity.setContentView(Activity.java:1892)
04-10 18:57:54.656: E/AndroidRuntime(6346): at cn.learn.tabhosttest.ViewPagerActivity.onCreate(ViewPagerActivity.java:50)
04-10 18:57:54.656: E/AndroidRuntime(6346): at android.app.Activity.performCreate(Activity.java:5168)
04-10 18:57:54.656: E/AndroidRuntime(6346): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1150)
04-10 18:57:54.656: E/AndroidRuntime(6346): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2322)
04-10 18:57:54.656: E/AndroidRuntime(6346): ... 11 more
04-10 18:57:54.656: E/AndroidRuntime(6346): Caused by: java.lang.ClassNotFoundException: Didn‘t find class "android.support.v4.view.ViewPager" on path: DexPathList[[zip file "/data/app/cn.learn.tabhosttest-1.apk"],nativeLibraryDirectories=[/data/app-lib/cn.learn.tabhosttest-1, /vendor/lib, /system/lib]]
04-10 18:57:54.656: E/AndroidRuntime(6346): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53)
04-10 18:57:54.656: E/AndroidRuntime(6346): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
04-10 18:57:54.656: E/AndroidRuntime(6346): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
04-10 18:57:54.656: E/AndroidRuntime(6346): at android.view.LayoutInflater.createView(LayoutInflater.java:552)
04-10 18:57:54.656: E/AndroidRuntime(6346): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)
04-10 18:57:54.656: E/AndroidRuntime(6346): ... 22 more
缺少android.support.v4.jar builder path 导入 v4.jar包 Error inflating class android.support.v4.view.ViewPager
时间: 2024-10-22 11:13:27
缺少android.support.v4.jar builder path 导入 v4.jar包 Error inflating class android.support.v4.view.ViewPager的相关文章
build path导入的jar失效
今天碰到一个很奇葩的问题,搞起我以后都不敢 build path到jar了 所以我就全部放到lib目录下了,因为之前使用build path导入的jar失效了,一直找不类,具体原因我也不清楚,我之前的项目使用build path是没问题的 原文地址:https://www.cnblogs.com/hfx123/p/9685905.html
Caused by: android.view.InflateException: Binary XML file line #12: Error inflating class android.support.design.widget.TabLayout,TableLayout引起页面崩溃
在使用TableLayout的时候,运行引用程序直接Crash. FATAL EXCEPTION: main Process: com.edaixi.activity, PID: 9703 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.edaixi.activity/com.edaixi.activity.PriceCenterActivity}: android.view.InflateExcept
Android:The connection to adb is down, and a severe error has occured(Android模拟器端口被占用)
相信不少同学和我一样遇到这个问题,有时候搞的还要重启电脑,那究竟是什么原因导致的呢,很明显,你的端口被占用了,那下面给出终极解决方案 一.首先描述症状,如下图 二.出现问题了,首先确定你的sdk目录是不是真的在Console输出的那个位置,如果是的话.接下来现在就要看看到底是谁占用了端口.打开命令编辑器进入你的sdk下的platform-tools文件夹输入adb start-serevr 恭喜,说明你的端口被占用了 三.接下来需要确定被占用的端口号是多少,输入命令adb nodaemon s
(Android)如何将一个高复用性项目供其他项目使用(jar导出,导入,Is Library)(转)
我们做过一个项目,以后这个项目里的代码经常会被其他项目用到.对于这种复用性高的项目(后面称为“项目1”),要被其他项目使用(后面称为“项目2”),为了减少代码量,我们目前有两种方法. 一种方法是:将项目1打包成jar文件,导出,导入到项目2里,供项目2调用. 另一种方法:将项目1作为 Library供项目2调用. 一.jar导出,导入 1.jar导出 现在有一个现成的项目1 功能是竖立的SeekBar 这里面只有一个VerticalSeekBar类,无Activity和资源文件需要打包. 现在我
eclipse中Build Path 导入的包和复制到 lib 包的区别
Java Build Path是我们编译需要的包,在比如在import ***.***.***时如果没用Java Build Path导入包的话类里面就有红叉,说不识别这个类,build path只是是建立项目对本地存放的包的引用,并没有将包复制到项目中. 复制到lib下是程序运行时需要的包,即便用Java Build Path导入过的包,没放到lib下,运行项目时会出现ClassNotFoundException的异常. 以下内容摘自:http://s343174147.iteye.com/b
ERROR: 32-bit Linux Android emulator binaries are DEPRECATED
如果你的linux机子是32位的,那么运行android模拟器的时候会报错,如下: ERROR: 32-bit Linux Android emulator binaries are DEPRECATED, to use them you will have to do at least one of the following: - Use the '-force-32bit' option when invoking 'emulator'. - Set ANDROID_EMULATOR_FO
Androidの疑难杂症之加载布局报Error inflating class <;unknown>;
android.view.InflateException: Binary XML file line #12: Error inflating class <unknown> 出现这种错误有可能是,你的布局当中某个wedget的属性出错,比如引用了?attr/xxxx,但是你的主题里面却没有给这个attr赋值. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:and
Could not find class &#39;android.support.v4.view.ViewPager&#39;问题处理
Could not find class 'android.support.v4.view.ViewPager', referenced from method*** 而且我有引入ViewPager包,编译是不报错的,但运行时报ViewPager不存在. 解决办法: 1.既然提示工程中没有导入jar包,那么我们就手动将其导入: 右击工程选择 Bulid Path->Add Libraries->User Library->User Libraries->new(随便取一个名字,比如
android新手关于左右滑动的问题,布局把<;android.support.v4.view.ViewPager/>;<;ImageView/>; 放在上面就不行了。
============问题描述============ main.xml代码: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:umadsdk="http://schemas.android.com/apk/res/com.Love