【BUG】android.content.res.Resources$NotFoundException: File res/drawable-xxhdpi/toolbar_line.png from

SafeGod在coolpad(4.0)上执行。登陆进去的设备列表界面遇到的问题。三星和索尼没有这个问题。

06-24 15:23:06.897: E/AndroidRuntime(12655): FATAL EXCEPTION: main

06-24 15:23:06.897: E/AndroidRuntime(12655): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.jason.safeGod/com.jason.safeGod.activities.MyDevice}: android.view.InflateException: Binary XML file
line #113: Error inflating class <unknown>

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1957)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1983)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.app.ActivityThread.access$600(ActivityThread.java:123)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.os.Handler.dispatchMessage(Handler.java:99)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.os.Looper.loop(Looper.java:137)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.app.ActivityThread.main(ActivityThread.java:4430)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at java.lang.reflect.Method.invokeNative(Native Method)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at java.lang.reflect.Method.invoke(Method.java:511)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:815)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:582)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at dalvik.system.NativeStart.main(Native Method)

06-24 15:23:06.897: E/AndroidRuntime(12655): Caused by: android.view.InflateException: Binary XML file line #113: Error inflating class <unknown>

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.view.LayoutInflater.createView(LayoutInflater.java:612)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:659)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:684)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.view.LayoutInflater.rInflate(LayoutInflater.java:745)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.view.LayoutInflater.rInflate(LayoutInflater.java:748)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.view.LayoutInflater.inflate(LayoutInflater.java:495)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.view.LayoutInflater.inflate(LayoutInflater.java:352)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:251)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.app.Activity.setContentView(Activity.java:1835)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at com.jason.safeGod.activities.MyDevice.onCreate(MyDevice.java:156)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.app.Activity.performCreate(Activity.java:4465)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1052)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)

06-24 15:23:06.897: E/AndroidRuntime(12655):
... 11 more

06-24 15:23:06.897: E/AndroidRuntime(12655): Caused by: java.lang.reflect.InvocationTargetException

06-24 15:23:06.897: E/AndroidRuntime(12655):
at java.lang.reflect.Constructor.constructNative(Native Method)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at java.lang.reflect.Constructor.newInstance(Constructor.java:417)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.view.LayoutInflater.createView(LayoutInflater.java:592)

06-24 15:23:06.897: E/AndroidRuntime(12655):
... 25 more

06-24 15:23:06.897: E/AndroidRuntime(12655): Caused by:
android.content.res.Resources$NotFoundException: File res/drawable-xxhdpi/toolbar_line.png from drawable resource ID #0x7f02013c

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.content.res.Resources.loadDrawable(Resources.java:2044)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.content.res.TypedArray.getDrawable(TypedArray.java:601)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.view.View.<init>(View.java:2790)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.widget.ImageView.<init>(ImageView.java:113)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.widget.ImageView.<init>(ImageView.java:109)

06-24 15:23:06.897: E/AndroidRuntime(12655):
... 28 more

06-24 15:23:06.897: E/AndroidRuntime(12655): Caused by: java.lang.IllegalArgumentException: width and height must be > 0

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.graphics.Bitmap.createBitmap(Bitmap.java:603)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.graphics.Bitmap.createBitmap(Bitmap.java:551)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.graphics.Bitmap.createScaledBitmap(Bitmap.java:437)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.graphics.BitmapFactory.finishDecode(BitmapFactory.java:525)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:500)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:352)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:773)

06-24 15:23:06.897: E/AndroidRuntime(12655):
at android.content.res.Resources.loadDrawable(Resources.java:2040)

06-24 15:23:06.897: E/AndroidRuntime(12655):
... 32 more

时间: 2024-08-10 23:26:16

【BUG】android.content.res.Resources$NotFoundException: File res/drawable-xxhdpi/toolbar_line.png from的相关文章

【转载】Android Gradle Build Error:Some file crunching failed, see logs for details解决办法

错误日志:Error:java.lang.RuntimeException: Some file crunching failed, see logs for details Log: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:mergeDebugResources'. > Error: java.lang.RuntimeException: Crunch

【BUG】&quot;main&quot; prio=5 tid=1 RUNNABLE

加载超大效果图导致内存不足(GC/ANR) 06-30 11:42:56.624: D/dalvikvm(16264): GC_CONCURRENT freed 1982K, 7% free 45372K/48775K, paused 1ms+3ms, total 50ms 06-30 11:42:57.469: D/DeviceTrackActivity(16264): onPause() 06-30 11:42:57.994: D/dalvikvm(16264): GC_CONCURRENT

【翻】Android Design Support Library 的 代码实验——几行代码,让你的 APP 变得花俏

译者地址:[翻]Android Design Support Library 的 代码实验--几行代码,让你的 APP 变得花俏 原文:Codelab for Android Design Support Library used in I/O Rewind Bangkok session--Make your app fancy with few lines of code 原文项目 demo: Lab-Android-DesignLibrary 双语对照地址: [翻-双语]Android D

【原创】android——SQLite实现简单的注册登陆(已经美化)

1,Main_activity的xmL配置 1 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.android.com/tools" 3 android:layout_width="match_parent" 4 android:layout_height="match_pa

【原创】android——Tabhost 自定义tab+底部实现+intent切换内容

1,实现tabhost自定义格式,再此仅仅显示背景和文字,效果图预览:(底边栏所示) (图片变形) 2,xml配置 activity_user的XML配置  1 <TabHost xmlns:android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.android.com/tools" 3 android:id="@+id/tabhost&qu

【转】android动画之Tween动画 (渐变、缩放、位移、旋转)

原文:http://blog.csdn.net/feng88724/article/details/6318430 Android 平台提供了两类动画. 一类是Tween动画,就是对场景里的对象不断的进行图像变化来产生动画效果(旋转.平移.放缩和渐变). 第二类就是 Frame动画,即顺序的播放事先做好的图像,与gif图片原理类似. 下面就讲一下Tweene Animations. 主要类: Animation   动画 AlphaAnimation 渐变透明度 RotateAnimation

【转】android 自定义ViewPager,修改原动画

转载请标明出处:http://blog.csdn.net/lmj623565791/article/details/38026503 记 得第一次见到ViewPager这个控件,瞬间爱不释手,做东西的主界面通通ViewPager,以及图片切换也抛弃了ImageSwitch之类的,开 始让ViewPager来做.时间长了,ViewPager的切换效果觉得枯燥,形成了审美疲劳~~我们需要改变,今天教大家如何改变ViewPager 切换时的效果,实现个性化的图片切换~~ 看一下这样效果的图片切换: 是

【原创】Android之Widget

简介 1 Android widget Android widget 也称为桌面插件,其是android系统应用开发层面的一部分,但是又有特殊用途,而且会成为整个android系统的亮点.Android中的AppWidget与google widget和中移动的widget并不是一个概念,这里的AppWidget只是把一个进程的控件嵌入到别外一个进程的窗口里的一种方法. 2 AppWidget Framework 2.1 定义 Android系统增加了AppWidget 框架,用以支持widge

【转】Android双向滑动菜单完全解析,教你如何一分钟实现双向滑动特效

转载请注明出处:http://blog.csdn.net/guolin_blog/article/details/9671609 记得在很早之前,我写了一篇关于Android滑动菜单的文章,其中有一个朋友在评论中留言,希望我可以帮他将这个滑动菜单改成双向滑动的方式.当时也没想花太多时间,简单修改了一下就发给了他,结果没想到后来却有一大批的朋友都来问我要这份双向滑动菜单的代码.由于这份代码写得很不用心,我发了部分朋友之后实在不忍心继续发下去了,于是决定专门写一篇文章来介绍更好的Android双向滑