解析android res 运行错误的问题

复制代码 代码如下:

W/ResourceType(  756): Failure getting entry for 0x7f020004 (t=1 e=4) in package 0: 0xffffffb1

D/AndroidRuntime(  756): Shutting down VM

W/dalvikvm(  756): threadid=1: thread exiting with uncaught exception (group=0x2aac47c8)

E/AndroidRuntime(  756): FATAL EXCEPTION: main

E/AndroidRuntime(  756): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xxxx.mediacenter/com.xxxx.mediacenter.video.VideoPlayerActivity}: android.view.InflateException: Binary XML file line #279: Error inflating class <unknown>

E/AndroidRuntime(  756): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)

E/AndroidRuntime(  756): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)

E/AndroidRuntime(  756): at android.app.ActivityThread.access$2300(ActivityThread.java:125)

E/AndroidRuntime(  756): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)

E/AndroidRuntime(  756): at android.os.Handler.dispatchMessage(Handler.java:99)

E/AndroidRuntime(  756): at android.os.Looper.loop(Looper.java:123)

E/AndroidRuntime(  756): at android.app.ActivityThread.main(ActivityThread.java:4627)

E/AndroidRuntime(  756): at java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime(  756): at java.lang.reflect.Method.invoke(Method.java:521)

E/AndroidRuntime(  756): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)

E/AndroidRuntime(  756): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)

E/AndroidRuntime(  756): at dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime(  756): Caused by: android.view.InflateException: Binary XML file line #279: Error inflating class <unknown>

E/AndroidRuntime(  756): at android.view.LayoutInflater.createView(LayoutInflater.java:513)

E/AndroidRuntime(  756): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)

E/AndroidRuntime(  756): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563)

E/AndroidRuntime(  756): at android.view.LayoutInflater.rInflate(LayoutInflater.java:618)

E/AndroidRuntime(  756): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621)

E/AndroidRuntime(  756): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621)

E/AndroidRuntime(  756): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621)

E/AndroidRuntime(  756): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621)

E/AndroidRuntime(  756): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621)

E/AndroidRuntime(  756): at android.view.LayoutInflater.inflate(LayoutInflater.java:407)

E/AndroidRuntime(  756): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)

E/AndroidRuntime(  756): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)

E/AndroidRuntime(  756): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198)

E/AndroidRuntime(  756): at android.app.Activity.setContentView(Activity.java:1647)

E/AndroidRuntime(  756): at com.xxxx.mediacenter.video.VideoPlayerActivity.onCreate(VideoPlayerActivity.java:152)

E/AndroidRuntime(  756): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)

E/AndroidRuntime(  756): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)

E/AndroidRuntime(  756): ... 11 more

E/AndroidRuntime(  756): Caused by: java.lang.reflect.InvocationTargetException

E/AndroidRuntime(  756): at android.widget.ImageButton.<init>(ImageButton.java:78)

E/AndroidRuntime(  756): at java.lang.reflect.Constructor.constructNative(Native Method)

E/AndroidRuntime(  756): at java.lang.reflect.Constructor.newInstance(Constructor.java:446)

E/AndroidRuntime(  756): at android.view.LayoutInflater.createView(LayoutInflater.java:500)

E/AndroidRuntime(  756): ... 27 more

E/AndroidRuntime(  756): Caused by: android.content.res.Resources$NotFoundException: File res/drawable/seek_thumb.xml from drawable resource ID #0x7f020004

E/AndroidRuntime(  756): at android.content.res.Resources.loadDrawable(Resources.java:1697)

E/AndroidRuntime(  756): at android.content.res.TypedArray.getDrawable(TypedArray.java:601)

E/AndroidRuntime(  756): at android.widget.ImageView.<init>(ImageView.java:118)

E/AndroidRuntime(  756): at android.widget.ImageButton.<init>(ImageButton.java:82)

E/AndroidRuntime(  756): ... 31 more

E/AndroidRuntime(  756): Caused by: android.content.res.Resources$NotFoundException: File res/drawable/seek_thumb.xml from xml type drawable resource ID #0x7f020004

E/AndroidRuntime(  756): at android.content.res.Resources.loadXmlResourceParser(Resources.java:1916)

E/AndroidRuntime(  756): at android.content.res.Resources.loadDrawable(Resources.java:1692)

E/AndroidRuntime(  756): ... 34 more

E/AndroidRuntime(  756): Caused by: java.io.FileNotFoundException: res/drawable/seek_thumb.xml

E/AndroidRuntime(  756): at android.content.res.AssetManager.openXmlAssetNative(Native Method)

E/AndroidRuntime(  756): at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:485)

E/AndroidRuntime(  756): at android.content.res.Resources.loadXmlResourceParser(Resources.java:1898)

E/AndroidRuntime(  756): ... 35 more

W/ActivityManager(  615):   Force finishing activity com.xxxx.mediacenter/.video.VideoPlayerActivity

W/ActivityManager(  615):   Force finishing activity com.xxxx.mediacenter/.center.MediaCenterActivity

I/gralloc (  615): Alloc:

I/gralloc (  615): usage: 0x133

I/gralloc (  615): format: 1

I/gralloc (  615): 480x232

or

复制代码 代码如下:

E/AndroidRuntime(  758): FATAL EXCEPTION: main

E/AndroidRuntime(  758): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.vixs.mediacenter/com.xxxx.mediacenter.video.VideoPlayerActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x7f030004

E/AndroidRuntime(  758): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)

E/AndroidRuntime(  758): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)

E/AndroidRuntime(  758): at android.app.ActivityThread.access$2300(ActivityThread.java:125)

E/AndroidRuntime(  758): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)

E/AndroidRuntime(  758): at android.os.Handler.dispatchMessage(Handler.java:99)

E/AndroidRuntime(  758): at android.os.Looper.loop(Looper.java:123)

E/AndroidRuntime(  758): at android.app.ActivityThread.main(ActivityThread.java:4627)

E/AndroidRuntime(  758): at java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime(  758): at java.lang.reflect.Method.invoke(Method.java:521)

E/AndroidRuntime(  758): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)

E/AndroidRuntime(  758): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)

E/AndroidRuntime(  758): at dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime(  758): Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f030004

E/AndroidRuntime(  758): at android.content.res.Resources.getValue(Resources.java:892)

E/AndroidRuntime(  758): at android.content.res.Resources.loadXmlResourceParser(Resources.java:1869)

E/AndroidRuntime(  758): at android.content.res.Resources.getLayout(Resources.java:731)

E/AndroidRuntime(  758): at android.view.LayoutInflater.inflate(LayoutInflater.java:318)

E/AndroidRuntime(  758): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)

E/AndroidRuntime(  758): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198)

E/AndroidRuntime(  758): at android.app.Activity.setContentView(Activity.java:1647)

E/AndroidRuntime(  758): at com.vixs.mediacenter.video.VideoPlayerActivity.onCreate(VideoPlayerActivity.java:152)

E/AndroidRuntime(  758): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)

E/AndroidRuntime(  758): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)

资源都放在drawable和layout中就可以啦

时间: 2024-09-20 00:21:32

解析android res 运行错误的问题的相关文章

解析android res 运行错误的问题_Android

复制代码 代码如下: W/ResourceType(  756): Failure getting entry for 0x7f020004 (t=1 e=4) in package 0: 0xffffffb1D/AndroidRuntime(  756): Shutting down VMW/dalvikvm(  756): threadid=1: thread exiting with uncaught exception (group=0x2aac47c8)E/AndroidRuntime

logcat-android程序运行错误,不知道怎么解决。

问题描述 android程序运行错误,不知道怎么解决. 我的安卓程序突然运行终止,logCat错误信息如下: 05-26 10:49:54.540: E/AndroidRuntime(30584): java.lang.OutOfMemoryError 05-26 10:49:54.540: E/AndroidRuntime(30584): at android.graphics.BitmapFactory.nativeDecodeStream(Native Method) 05-26 10:4

eclipse android程序没有提示错误,但程序调试时终止运行

问题描述 eclipse android程序没有提示错误,但程序调试时终止运行 刚在学习android开发,好多不懂,我按照书上的代码一个个敲的,以前敲过一遍在原先的eclipse能运行,最近换了个系统用了4.5的eclipse,环境变量应该也没问题,又照着书上敲了一边,我用手机,运行后就显示"已停止运行",程序没提示错误,不知道怎么回事,我连着照着书上敲了两个项目都是这样,求救...... 下面这是在模拟器上给出的错误提示 解决方案 这不提示很明显,LoginActivity的布局中

android开发鼠标监听事件运行错误

问题描述 android开发鼠标监听事件运行错误 解决方案 mainactivity 中27行 空指针了,....写的很明显了.. 解决方案二: 看一下MainActivity.java的第27行代码,有对象为null,所以报空指针异常. 解决方案三: 亲,学会看logcat报异常哦,有时候异常原因写在中间

停止执行-android程序运行时会突然停止运行,但代码却没有错误。

问题描述 android程序运行时会突然停止运行,但代码却没有错误. 在下是新手,刚接触android开发.运行程序时不止一次遇到停止运行的情况,查看代码,发现并没有任何错误提示. 以下是MainActivity.java的代码: package com.example.sqlitetest; import android.app.Activity; import android.app.AlertDialog; import android.content.Context; import an

Android Studio 开始运行错误

/******************************************************************************** * Android Studio 开始运行错误 * 说明: * 打开Android Studio就抛出这个错误. * * 2017-4-1 深圳 南山平山村 曾剑锋 *******************************************************************************/ 一.参考

编译可在Android上运行的qemu user mode

编译可在Android上运行的qemu user mode 寻禹@阿里聚安全 前言 本文在Ubuntu 64位系统上对qemu项目进行交叉编译,并且只编译与qemu user mode有关的代码. 下文中的"NDK"若无特殊说明均指"Android NDK". 下文中"$NDK"表示的是NDK的根目录. 步骤 1. 下载并安装Android NDK 下载并安装Android NDK的过程在这里不做介绍. 2. 下载qemu 3. 设置NDK工具的

编译可在Android上运行的依赖库(二):gettext库

编译可在Android上运行的依赖库(二):gettext库 作者:寻禹@阿里聚安全 前言 gettext版本:0.19.7. 本文在Ubuntu 64位系统上对gettext项目进行交叉编译. 下文中的"NDK"若无特殊说明均指"Android NDK". 注意:不要运行gettext源码目录下的autogen.sh文件.如果先运行autogen.sh然后运行configure再然后使用make命令编译时,编译会出错. 步骤 1. 安装必要的工具 如果不安装这些工

编译可在Android上运行的依赖库(四):llibiconv库

编译可在Android上运行的依赖库(四):llibiconv库 作者:寻禹@阿里聚安全 前言 libiconv版本:1.14. 本文在Ubuntu 64位系统上对libiconv项目进行交叉编译. 下文中的"NDK"若无特殊说明均指"Android NDK". 注意:不要运行libiconv源码目录下的autogen.sh文件.如果先运行autogen.sh然后运行configure再然后使用make命令编译时,编译会出错. 步骤 1. 下载并安装Android