Binary XML file line #2: Error inflating
06-27 14:29:27.600: E/AndroidRuntime(6936): FATAL EXCEPTION: main
06-27 14:29:27.600: E/AndroidRuntime(6936): android.view.InflateException: Binary XML file line #2: Error inflating class com.example.FileListItem
06-27 14:29:27.600: E/AndroidRuntime(6936): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:691)
06-27 14:29:27.600: E/AndroidRuntime(6936): at android.view.LayoutInflater.inflate(LayoutInflater.java:466)
06-27 14:29:27.600: E/AndroidRuntime(6936): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
06-27 14:29:27.600: E/AndroidRuntime(6936): at com.example.filemanage.FileListAdapter.getView(FileListAdapter.java:51)
06-27 14:29:27.600: E/AndroidRuntime(6936): at android.widget.AbsListView.obtainView(AbsListView.java:2033)
06-27 14:29:27.600: E/AndroidRuntime(6936): at android.widget.ListView.measureHeightOfChildren(ListView.java:1244)
06-27 14:29:27.600: E/AndroidRuntime(6936): at android.widget.ListView.onMeasure(ListView.java:1155)
06-27 14:29:27.600: E/AndroidRuntime(6936): at android.view.View.measure(View.java:12723)
06-27 14:29:27.600: E/AndroidRuntime(6936): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4698)
06-27 14:29:27.600: E/AndroidRuntime(6936): at android.widget.FrameLayout.onMeasure(FrameLayout.java:293)
06-27 14:29:27.600: E/AndroidRuntime(6936): at android.view.View.measure(View.java:12723)
06-27 14:29:27.600: E/AndroidRuntime(6936): at android.widget.LinearLayout.measureVertical(LinearLayout.java:812)
06-27 14:29:27.600: E/AndroidRuntime(6936): at android.widget.LinearLayout.onMeasure(LinearLayout.java:553)
06-27 14:29:27.600: E/AndroidRuntime(6936): at android.view.View.measure(View.java:12723)
06-27 14:29:27.600: E/AndroidRuntime(6936): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4698)
06-27 14:29:27.600: E/AndroidRuntime(6936): at android.widget.FrameLayout.onMeasure(FrameLayout.java:293)
06-27 14:29:27.600: E/AndroidRuntime(6936): at android.view.View.measure(View.java:12723)
06-27 14:29:27.600: E/AndroidRuntime(6936): at android.widget.LinearLayout.measureVertical(LinearLayout.java:812)
06-27 14:29:27.600: E/AndroidRuntime(6936): at android.widget.LinearLayout.onMeasure(LinearLayout.java:553)
06-27 14:29:27.600: E/AndroidRuntime(6936): at android.view.View.measure(View.java:12723)
06-27 14:29:27.600: E/AndroidRuntime(6936): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4698)
06-27 14:29:27.600: E/AndroidRuntime(6936): at android.widget.FrameLayout.onMeasure(FrameLayout.java:293)
06-27 14:29:27.600: E/AndroidRuntime(6936): at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2095)
06-27 14:29:27.600: E/AndroidRuntime(6936): at android.view.View.measure(View.java:12723)
06-27 14:29:27.600: E/AndroidRuntime(6936): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1064)
06-27 14:29:27.600: E/AndroidRuntime(6936): at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2442)
06-27 14:29:27.600: E/AndroidRuntime(6936): at android.os.Handler.dispatchMessage(Handler.java:99)
06-27 14:29:27.600: E/AndroidRuntime(6936): at android.os.Looper.loop(Looper.java:137)
06-27 14:29:27.600: E/AndroidRuntime(6936): at android.app.ActivityThread.main(ActivityThread.java:4456)
06-27 14:29:27.600: E/AndroidRuntime(6936): at java.lang.reflect.Method.invokeNative(Native Method)
06-27 14:29:27.600: E/AndroidRuntime(6936): at java.lang.reflect.Method.invoke(Method.java:511)
06-27 14:29:27.600: E/AndroidRuntime(6936): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)
06-27 14:29:27.600: E/AndroidRuntime(6936): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:554)
06-27 14:29:27.600: E/AndroidRuntime(6936): at dalvik.system.NativeStart.main(Native Method)
06-27 14:29:27.600: E/AndroidRuntime(6936): Caused by: java.lang.ClassNotFoundException: com.example.FileListItem
06-27 14:29:27.600: E/AndroidRuntime(6936): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
06-27 14:29:27.600: E/AndroidRuntime(6936): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
06-27 14:29:27.600: E/AndroidRuntime(6936): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
06-27 14:29:27.600: E/AndroidRuntime(6936): at android.view.LayoutInflater.createView(LayoutInflater.java:552)
06-27 14:29:27.600: E/AndroidRuntime(6936): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:680)
06-27 14:29:27.600: E/AndroidRuntime(6936): ... 33 more
如果报这个错误有可能是布局文件中有自定义View 记得修改自定义布局包名
像我这边就包名写错了,一直报错,com.example.filemanage包下找不到FileListItem这个类
<com.example.filemanage.FileListItem xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="5dip"
android:paddingBottom="5dip"
android:orientation="horizontal"
android:gravity="center_vertical">
Binary XML file line #2: Error inflating的更多相关文章
- Android项目部署时,发生AndroidRuntime:android.view.InflateException: Binary XML file line #168: Error inflating class错误
这个错误也是让我纠结了一天,当时写的项目在安卓虚拟机上运行都很正常,于是当我部署到安卓手机上时,点击登陆按钮跳转到用户主界面的时候直接结束运行返回登陆界面. 当时,我仔细检查了一下自己的代码,并 ...
- bug_ _图片_android.view.InflateException: Binary XML file line #1: Error inflating class <unknown>
=========== 1 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.zgan.communit ...
- bug_ _ android.view.InflateException: Binary XML file line #2: Error inflating class <unknown
========= 5.0 android异常“android.view.InflateException: Binary XML file line # : Error inflating ...
- java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ex.activity/com.ex.activity.LoginActivity}: android.view.InflateException: Binary XML file line #1: Error inflating class
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ex.activity/com.ex.activity.L ...
- 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. ...
- 自定义View编译失败。Binary XML file line #255: Error inflating
02-28 15:17:16.281: DEBUG/AndroidRuntime(391): Shutting down VM 02-28 15:17:16.281: WARN/dalvikvm(39 ...
- fragment显示 Binary XML file line #12: Error inflating class fragment 错误
问题 最近换了新机子,今天在静态用fragment时突然发现闪退,一看显示 Binary XML file line #12: Error inflating class fragment 错误 后面 ...
- "android.uid.systemandroid.view.InflateException: Binary XML file line #7: Error inflating class android.webkit.WebView
在android源码中编译app通过,运行时出现错误: "android.uid.systemandroid.view.InflateException: Binary XML file l ...
- widget自定义控件【android.view.InflateException: Binary XML file line #2: Error inflating class...】
此错误比较难定位,场景是这样的:在一个widget中使用了自定义控件,始终会报 android.view.InflateException: Binary XML file line #2: Erro ...
随机推荐
- MYSQL的安装
1.将mysql的安装文件放入虚拟机 2.搭建yum库 3.依次安装mysql的5个文件 最后一个server需要的依赖太多,所以用yum进行安装. 6.进行mysql的重置 mysql_instal ...
- Winform控件WebBrowser与JS脚本交互
1)在c#中调用js函数 如果要传值,则可以定义object[]数组. 具体方法如下例子: 首先在js中定义被c#调用的方法: function Messageaa(message) { ...
- 基于webdriver的jmeter性能测试-Eclipse+Selenium+JUnit生成jar包
续接 打开eclipse新建java项目,如下图所示: 输入项目名称后点击"完成"按钮,如下图所示: eclipse中新建一个java项目,如下图所示: 添加类库,如下图所示: 在 ...
- 获取IP地址 & 伪装IP地址发送请求
//获取请求客户端IP地址 public final static String getIpAddress(HttpServletRequest request) throws IOExcepti ...
- 启动tomcat 报 Could not delete D:/online/.metadata/.plugins/org.eclipse.wst.server.core/tm
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXkAAADkCAIAAADy7sNDAAAgAElEQVR4nO2deVQUV77H6z+haSeTkZ
- 浏览器地址栏输入一个URL后回车,将会发生的事情
浏览器向DNS服务器查找输入URL对应的IP地址. DNS服务器返回网站的IP地址. 浏览器根据IP地址与目标web服务器在80端口上建立TCP连接 浏览器获取请求页面的html代码. 浏览器在显示窗 ...
- laravel中TokenMismatchException异常处理
在使用post或者put等方法请求时,有时会报TokenMismatchException in VerifyCsrfToken.php line 67错误.原因是laravel默认开启了防CSRF. ...
- 前端-SEO
SEO是 search Engine Optimization (搜索引擎优化) SEO: ①白帽SEO(普通SEO做的优化) 网站标题.关键字.描述 网站内容优化 Robot.txt文件 网站地 ...
- 使用Dotfuscator 进行.Net代码混淆 代码加密的方法
混淆代码能在一定程度上放置代码被盗用,保护我们的知识产权 1.打开vs2012,选择工具-〉Dotfuscator Software Services 2.选择你需要混淆的DLL 文件,可以多选择 3 ...
- Call for Papers IEEE/ACM International Conference on Advances in Social Network Analysis and Mining (ASONAM)
IEEE/ACM International Conference on Advances in Social Network Analysis and Mining (ASONAM) 2014 In ...