安卓跳转界面异常求大神帮忙看看日志提示的错误

10-11 05:02:29.678: D/AndroidRuntime(2714): Shutting down VM
10-11 05:02:29.678: W/dalvikvm(2714): threadid=1: thread exiting with uncaught exception (group=0xa4d00b20)
10-11 05:02:29.682: E/AndroidRuntime(2714): FATAL EXCEPTION: main
10-11 05:02:29.682: E/AndroidRuntime(2714): Process: com.example.android_dealimage, PID: 2714
10-11 05:02:29.682: E/AndroidRuntime(2714): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android_dealimage/com.example.android_dealimage.primaly}: android.view.InflateException: Binary XML file line #6: Error inflating class imageView
10-11 05:02:29.682: E/AndroidRuntime(2714): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2184)
10-11 05:02:29.682: E/AndroidRuntime(2714): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
10-11 05:02:29.682: E/AndroidRuntime(2714): at android.app.ActivityThread.access$800(ActivityThread.java:135)
10-11 05:02:29.682: E/AndroidRuntime(2714): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
10-11 05:02:29.682: E/AndroidRuntime(2714): at android.os.Handler.dispatchMessage(Handler.java:102)
10-11 05:02:29.682: E/AndroidRuntime(2714): at android.os.Looper.loop(Looper.java:136)
10-11 05:02:29.682: E/AndroidRuntime(2714): at android.app.ActivityThread.main(ActivityThread.java:5001)
10-11 05:02:29.682: E/AndroidRuntime(2714): at java.lang.reflect.Method.invokeNative(Native Method)
10-11 05:02:29.682: E/AndroidRuntime(2714): at java.lang.reflect.Method.invoke(Method.java:515)
10-11 05:02:29.682: E/AndroidRuntime(2714): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
10-11 05:02:29.682: E/AndroidRuntime(2714): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
10-11 05:02:29.682: E/AndroidRuntime(2714): at dalvik.system.NativeStart.main(Native Method)
10-11 05:02:29.682: E/AndroidRuntime(2714): Caused by: android.view.InflateException: Binary XML file line #6: Error inflating class imageView
10-11 05:02:29.682: E/AndroidRuntime(2714): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:707)
10-11 05:02:29.682: E/AndroidRuntime(2714): at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
10-11 05:02:29.682: E/AndroidRuntime(2714): at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
10-11 05:02:29.682: E/AndroidRuntime(2714): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
10-11 05:02:29.682: E/AndroidRuntime(2714): at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
10-11 05:02:29.682: E/AndroidRuntime(2714): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:290)
10-11 05:02:29.682: E/AndroidRuntime(2714): at android.app.Activity.setContentView(Activity.java:1929)
10-11 05:02:29.682: E/AndroidRuntime(2714): at com.example.android_dealimage.primaly.onCreate(primaly.java:22)
10-11 05:02:29.682: E/AndroidRuntime(2714): at android.app.Activity.performCreate(Activity.java:5231)
10-11 05:02:29.682: E/AndroidRuntime(2714): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
10-11 05:02:29.682: E/AndroidRuntime(2714): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
10-11 05:02:29.682: E/AndroidRuntime(2714): ... 11 more
10-11 05:02:29.682: E/AndroidRuntime(2714): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.imageView" on path: DexPathList[[zip file "/data/app/com.example.android_dealimage-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.android_dealimage-1, /system/lib]]
10-11 05:02:29.682: E/AndroidRuntime(2714): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
10-11 05:02:29.682: E/AndroidRuntime(2714): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
10-11 05:02:29.682: E/AndroidRuntime(2714): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
10-11 05:02:29.682: E/AndroidRuntime(2714): at android.view.LayoutInflater.createView(LayoutInflater.java:559)
10-11 05:02:29.682: E/AndroidRuntime(2714): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:652)
10-11 05:02:29.682: E/AndroidRuntime(2714): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:66)
10-11 05:02:29.682: E/AndroidRuntime(2714): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:669)
10-11 05:02:29.682: E/AndroidRuntime(2714): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:694)
10-11 05:02:29.682: E/AndroidRuntime(2714): ... 21 more
10-11 05:02:32.382: I/Process(2714): Sending signal. PID: 2714 SIG: 9

2个回答

com.example.android_dealimage.primaly 第6行 的imageview 有问题 。 你可以截图过来

你的某个资源文件的第6行有问题

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问