【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.

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

相关文章
|
7月前
|
Android开发
【Bug】Android resource linking failed和error: failed linking references.
【Bug】Android resource linking failed和error: failed linking references.
|
4月前
|
开发工具 Android开发
解决Android运行出现NDK at /Library/Android/sdk/ndk-bundle did not have a source.properties file
解决Android运行出现NDK at /Library/Android/sdk/ndk-bundle did not have a source.properties file
182 4
解决Android运行出现NDK at /Library/Android/sdk/ndk-bundle did not have a source.properties file
|
6月前
|
存储 Android开发 Kotlin
Kotlin开发安卓app,在使用 MediaPlayer 播放 res/raw 中的音乐时遇到突然中断的问题,而 onErrorListener 没有接收到任何报错
在使用 Android MediaPlayer 播放 res/raw 中的音乐时遇到中断问题,可能的原因包括资源问题、媒体文件编码格式、生命周期管理和设备资源配置。要排查问题,检查音频文件是否正确包含,格式编码是否支持,MediaPlayer 是否正确管理及释放,以及设备是否有足够存储和配置。通过设置 onErrorListener 日志和确保在 onDestroy 中释放资源来调试。如果文件过大,考虑使用 AssetManager。遵循这些步骤可帮助诊断并解决播放中断的问题。
|
6月前
|
Shell Go 开发工具
How to decompile Google Android .apk file as readable dump【原创】
How to decompile Google Android .apk file as readable dump【原创】
35 0
|
7月前
|
XML Android开发 数据格式
Caused by: android.view.InflateException: Binary XML file line #11: Error inflating class
Caused by: android.view.InflateException: Binary XML file line #11: Error inflating class
66 0
|
7月前
|
Android开发
Android Uri转File方法(适配android 10以上版本及android 10以下版本)
Android Uri转File方法(适配android 10以上版本及android 10以下版本)
802 0
|
7月前
|
XML 数据格式
android.view.InflateException: Binary XML file line #0: Attempt to invoke virtual
android.view.InflateException: Binary XML file line #0: Attempt to invoke virtual
33 0
|
XML Android开发 数据格式
Android Binary XML file line #50: Error inflating class androidx.cardview.widget.CardView 错误
Android Binary XML file line #50: Error inflating class androidx.cardview.widget.CardView 错误
90 0
|
XML Java Android开发
【Android】正确使用资源res文件
首先有的UI改颜色,没用,发现无法更改按钮背景颜色。 我的AS下载的是最新版本,Button按钮的背景颜色一直都是亮紫色,无法更改。 为什么呢? 首先在你的清单文件中看你应用的是哪个主题。
384 0
|
Android开发
Bug日志(四)——Android 防止多次点击(另解决多个列表子项点击)
在用户使用 应用的时候,经常会出现点击过快且多次点击同一控件的情况, 一方面这是因为应用或手机当前有些卡顿,网络卡啥的 另一方面也可能是由于很多应用并没有设置按钮点击时的 selector 或者其它按钮响应方式(例如点击按钮时按钮放大,常见于游戏),导致用户误认为没有点击到当前按钮。(比如使用selector再点击后更换背景颜色,图片等等)