系统崩溃时出现错误“错误导致类<unknown>”</unknown>

时间:2011-02-23 06:26:34

标签: android

我收到android.view.InflateException:错误导致类和系统崩溃。

08-02 16:57:58.570: E/AndroidRuntime(366): FATAL EXCEPTION: main
08-02 16:57:58.570: E/AndroidRuntime(366): java.lang.RuntimeException: Unable to start activity ComponentInfo{org.raman.sing/org.raman.sing.setting}: android.view.InflateException: Binary XML file line #2: Error inflating class <unknown>
08-02 16:57:58.570: E/AndroidRuntime(366):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
08-02 16:57:58.570: E/AndroidRuntime(366):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
08-02 16:57:58.570: E/AndroidRuntime(366):  at android.app.ActivityThread.access$1500(ActivityThread.java:117)
08-02 16:57:58.570: E/AndroidRuntime(366):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
08-02 16:57:58.570: E/AndroidRuntime(366):  at android.os.Handler.dispatchMessage(Handler.java:99)
08-02 16:57:58.570: E/AndroidRuntime(366):  at android.os.Looper.loop(Looper.java:123)
08-02 16:57:58.570: E/AndroidRuntime(366):  at android.app.ActivityThread.main(ActivityThread.java:3683)
08-02 16:57:58.570: E/AndroidRuntime(366):  at java.lang.reflect.Method.invokeNative(Native Method)
08-02 16:57:58.570: E/AndroidRuntime(366):  at java.lang.reflect.Method.invoke(Method.java:507)
08-02 16:57:58.570: E/AndroidRuntime(366):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
08-02 16:57:58.570: E/AndroidRuntime(366):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
08-02 16:57:58.570: E/AndroidRuntime(366):  at dalvik.system.NativeStart.main(Native Method)
08-02 16:57:58.570: E/AndroidRuntime(366): Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class <unknown>
08-02 16:57:58.570: E/AndroidRuntime(366):  at android.view.LayoutInflater.createView(LayoutInflater.java:518)
08-02 16:57:58.570: E/AndroidRuntime(366):  at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
08-02 16:57:58.570: E/AndroidRuntime(366):  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:568)
08-02 16:57:58.570: E/AndroidRuntime(366):  at android.view.LayoutInflater.inflate(LayoutInflater.java:386)
08-02 16:57:58.570: E/AndroidRuntime(366):  at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
08-02 16:57:58.570: E/AndroidRuntime(366):  at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
08-02 16:57:58.570: E/AndroidRuntime(366):  at   com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:207)
08-02 16:57:58.570: E/AndroidRuntime(366):  at android.app.Activity.setContentView(Activity.java:1657)
08-02 16:57:58.570: E/AndroidRuntime(366):  at org.raman.sing.setting.onCreate(setting.java:88)
08-02 16:57:58.570: E/AndroidRuntime(366):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
08-02 16:57:58.570: E/AndroidRuntime(366):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
08-02 16:57:58.570: E/AndroidRuntime(366):  ... 11 more
08-02 16:57:58.570: E/AndroidRuntime(366): Caused by: java.lang.reflect.InvocationTargetException
08-02 16:57:58.570: E/AndroidRuntime(366):  at java.lang.reflect.Constructor.constructNative(Native Method)
08-02 16:57:58.570: E/AndroidRuntime(366):  at java.lang.reflect.Constructor.newInstance(Constructor.java:415)
08-02 16:57:58.570: E/AndroidRuntime(366):  at android.view.LayoutInflater.createView(LayoutInflater.java:505)
08-02 16:57:58.570: E/AndroidRuntime(366):  ... 21 more
08-02 16:57:58.570: E/AndroidRuntime(366): Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget
08-02 16:57:58.570: E/AndroidRuntime(366):  at android.graphics.Bitmap.nativeCreate(Native Method)
08-02 16:57:58.570: E/AndroidRuntime(366):  at android.graphics.Bitmap.createBitmap(Bitmap.java:477)
08-02 16:57:58.570: E/AndroidRuntime(366):  at android.graphics.Bitmap.createBitmap(Bitmap.java:444)
08-02 16:57:58.570: E/AndroidRuntime(366):  at android.graphics.Bitmap.createScaledBitmap(Bitmap.java:349)
08-02 16:57:58.570: E/AndroidRuntime(366):  at android.graphics.BitmapFactory.finishDecode(BitmapFactory.java:498)
08-02 16:57:58.570: E/AndroidRuntime(366):  at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:473)
08-02 16:57:58.570: E/AndroidRuntime(366):  at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:336)
08-02 16:57:58.570: E/AndroidRuntime(366):  at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:697)
08-02 16:57:58.570: E/AndroidRuntime(366):  at android.content.res.Resources.loadDrawable(Resources.java:1709)
08-02 16:57:58.570: E/AndroidRuntime(366):  at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
08-02 16:57:58.570: E/AndroidRuntime(366):  at android.view.View.<init>(View.java:1951)
08-02 16:57:58.570: E/AndroidRuntime(366):  at android.view.View.<init>(View.java:1899)
08-02 16:57:58.570: E/AndroidRuntime(366):  at android.view.ViewGroup.<init>(ViewGroup.java:286)
08-02 16:57:58.570: E/AndroidRuntime(366):  at android.widget.AbsoluteLayout.<init>(AbsoluteLayout.java:47)
08-02 16:57:58.570: E/AndroidRuntime(366):  ... 24 more

0 个答案:

没有答案