正在回答
1)再往下找log。从上往下找,出现第一次你写的类的地方,对应的还有行号。就是在那里出的问题。 2)你的图片在哪个文件夹下?不管是在哪里,请一定要复制一份放在drawable里。不是drawable-xxx,而是drawable哈。祝:学习愉快
单独做了一个Demo也是这个情况 下面是报错情况
03-14 22:52:17.517 4721-4721/? I/art: Late-enabling -Xcheck:jni
03-14 22:52:17.535 4721-4731/? E/art: Failed sending reply to debugger: Broken pipe
03-14 22:52:17.535 4721-4731/? I/art: Debugger is no longer active
03-14 22:52:17.626 4721-4721/? W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter androidx.vectordrawable.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
03-14 22:52:17.653 4721-4721/? I/art: Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>
03-14 22:52:17.654 4721-4721/? I/art: Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>
03-14 22:52:17.687 4721-4739/? D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
03-14 22:52:17.689 4721-4721/? D/Atlas: Validating map...
03-14 22:52:17.710 4721-4721/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: [I@c1262f7: open failed: ENOENT (No such file or directory)
03-14 22:52:17.710 4721-4721/? I/System.out: resolveUri failed on bad bitmap uri: [I@c1262f7
03-14 22:52:17.725 4721-4739/? I/OpenGLRenderer: Initialized EGL, version 1.4
03-14 22:52:17.747 4721-4739/? D/OpenGLRenderer: Enabling debug mode 0
03-14 22:52:17.887 4721-4721/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: [I@c1262f7: open failed: ENOENT (No such file or directory)
03-14 22:52:17.887 4721-4721/? I/System.out: resolveUri failed on bad bitmap uri: [I@c1262f7
03-14 22:52:17.888 4721-4721/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: [I@c1262f7: open failed: ENOENT (No such file or directory)
03-14 22:52:17.888 4721-4721/? I/System.out: resolveUri failed on bad bitmap uri: [I@c1262f7
03-14 22:52:17.890 4721-4721/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: [I@c1262f7: open failed: ENOENT (No such file or directory)
03-14 22:52:17.890 4721-4721/? I/System.out: resolveUri failed on bad bitmap uri: [I@c1262f7
03-14 22:52:17.892 4721-4721/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: [I@c1262f7: open failed: ENOENT (No such file or directory)
03-14 22:52:17.892 4721-4721/? I/System.out: resolveUri failed on bad bitmap uri: [I@c1262f7
03-14 22:52:17.894 4721-4721/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: [I@c1262f7: open failed: ENOENT (No such file or directory)
03-14 22:52:17.894 4721-4721/? I/System.out: resolveUri failed on bad bitmap uri: [I@c1262f7
03-14 22:52:17.896 4721-4721/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: [I@c1262f7: open failed: ENOENT (No such file or directory)
03-14 22:52:17.896 4721-4721/? I/System.out: resolveUri failed on bad bitmap uri: [I@c1262f7
03-14 22:52:17.897 4721-4721/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: [I@c1262f7: open failed: ENOENT (No such file or directory)
03-14 22:52:17.897 4721-4721/? I/System.out: resolveUri failed on bad bitmap uri: [I@c1262f7
03-14 22:52:17.898 4721-4721/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: [I@c1262f7: open failed: ENOENT (No such file or directory)
03-14 22:52:17.898 4721-4721/? I/System.out: resolveUri failed on bad bitmap uri: [I@c1262f7
03-14 22:52:17.899 4721-4721/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: [I@c1262f7: open failed: ENOENT (No such file or directory)
03-14 22:52:17.899 4721-4721/? I/System.out: resolveUri failed on bad bitmap uri: [I@c1262f7
03-14 22:52:17.919 4721-4721/? W/art: Before Android 4.1, method int androidx.appcompat.widget.DropDownListView.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
03-14 22:52:17.923 4721-4721/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: [I@c1262f7: open failed: ENOENT (No such file or directory)
03-14 22:52:17.923 4721-4721/? I/System.out: resolveUri failed on bad bitmap uri: [I@c1262f7
03-14 22:52:17.990 4721-4721/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: [I@c1262f7: open failed: ENOENT (No such file or directory)
03-14 22:52:17.990 4721-4721/? I/System.out: resolveUri failed on bad bitmap uri: [I@c1262f7
03-13 19:24:37.659 7499-7499/? I/art: Late-enabling -Xcheck:jni
03-13 19:24:37.695 7499-7509/? I/art: Debugger is no longer active
03-13 19:24:37.803 7499-7499/? W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter androidx.vectordrawable.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
03-13 19:24:37.828 7499-7499/? I/art: Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>
03-13 19:24:37.828 7499-7499/? I/art: Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>
03-13 19:24:37.854 7499-7517/? D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
03-13 19:24:37.856 7499-7499/? D/Atlas: Validating map...
03-13 19:24:37.878 7499-7517/? I/OpenGLRenderer: Initialized EGL, version 1.4
03-13 19:24:37.908 7499-7517/? D/OpenGLRenderer: Enabling debug mode 0
03-13 19:24:39.729 7499-7509/? I/art: Ignoring second debugger -- accepting and dropping
03-13 19:24:55.945 7499-7499/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: [I@98962f: open failed: ENOENT (No such file or directory)
03-13 19:24:55.945 7499-7499/? I/System.out: resolveUri failed on bad bitmap uri: [I@98962f
03-13 19:24:55.946 7499-7499/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: [I@98962f: open failed: ENOENT (No such file or directory)
03-13 19:24:55.946 7499-7499/? I/System.out: resolveUri failed on bad bitmap uri: [I@98962f
03-13 19:24:56.218 7499-7499/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: [I@98962f: open failed: ENOENT (No such file or directory)
03-13 19:24:56.218 7499-7499/? I/System.out: resolveUri failed on bad bitmap uri: [I@98962f
03-13 19:24:56.220 7499-7499/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: [I@98962f: open failed: ENOENT (No such file or directory)
03-13 19:24:56.220 7499-7499/? I/System.out: resolveUri failed on bad bitmap uri: [I@98962f
03-13 19:24:56.220 7499-7499/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: [I@98962f: open failed: ENOENT (No such file or directory)
03-13 19:24:56.220 7499-7499/? I/System.out: resolveUri failed on bad bitmap uri: [I@98962f
03-13 19:24:56.222 7499-7499/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: [I@98962f: open failed: ENOENT (No such file or directory)
03-13 19:24:56.222 7499-7499/? I/System.out: resolveUri failed on bad bitmap uri: [I@98962f
03-13 19:24:56.224 7499-7499/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: [I@98962f: open failed: ENOENT (No such file or directory)
03-13 19:24:56.224 7499-7499/? I/System.out: resolveUri failed on bad bitmap uri: [I@98962f
03-13 19:24:56.228 7499-7499/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: [I@98962f: open failed: ENOENT (No such file or directory)
03-13 19:24:56.228 7499-7499/? I/System.out: resolveUri failed on bad bitmap uri: [I@98962f
03-13 19:24:56.229 7499-7499/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: [I@98962f: open failed: ENOENT (No such file or directory)
03-13 19:24:56.229 7499-7499/? I/System.out: resolveUri failed on bad bitmap uri: [I@98962f
03-13 19:24:56.231 7499-7499/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: [I@98962f: open failed: ENOENT (No such file or directory)
03-13 19:24:56.231 7499-7499/? I/System.out: resolveUri failed on bad bitmap uri: [I@98962f
03-13 19:24:56.232 7499-7499/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: [I@98962f: open failed: ENOENT (No such file or directory)
03-13 19:24:56.232 7499-7499/? I/System.out: resolveUri failed on bad bitmap uri: [I@98962f
03-13 19:24:56.234 7499-7499/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: [I@98962f: open failed: ENOENT (No such file or directory)
03-13 19:24:56.234 7499-7499/? I/System.out: resolveUri failed on bad bitmap uri: [I@98962f
03-13 19:24:56.396 7499-7499/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: [I@98962f: open failed: ENOENT (No such file or directory)
03-13 19:24:56.396 7499-7499/? I/System.out: resolveUri failed on bad bitmap uri: [I@98962f
03-13 19:24:56.398 7499-7499/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: [I@98962f: open failed: ENOENT (No such file or directory)
03-13 19:24:56.398 7499-7499/? I/System.out: resolveUri failed on bad bitmap uri: [I@98962f
03-13 19:24:56.562 7499-7499/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: [I@98962f: open failed: ENOENT (No such file or directory)
03-13 19:24:56.562 7499-7499/? I/System.out: resolveUri failed on bad bitmap uri: [I@98962f
03-13 19:24:56.563 7499-7499/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: [I@98962f: open failed: ENOENT (No such file or directory)
03-13 19:24:56.563 7499-7499/? I/System.out: resolveUri failed on bad bitmap uri: [I@98962f
03-13 19:24:56.564 7499-7499/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: [I@98962f: open failed: ENOENT (No such file or directory)
03-13 19:24:56.564 7499-7499/? I/System.out: resolveUri failed on bad bitmap uri: [I@98962f
03-13 19:24:56.565 7499-7499/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: [I@98962f: open failed: ENOENT (No such file or directory)
03-13 19:24:56.565 7499-7499/? I/System.out: resolveUri failed on bad bitmap uri: [I@98962f
- 参与学习 人
- 提交作业 1789 份
- 解答问题 2907 个
Android大楼Java起,本阶段是Android攻城狮培养计划的第一部分语法与界面基础篇,将带大家从0开始入门Android开发。
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星