2013-11-09 204 views
-1

我的Android項目出現問題。我不知道它是什麼或什麼造成這個問題。這是我的日誌。我希望,你會說更多關於這個問題的細節。有時我點擊第二個按鈕和日食寫給我這個。運行時異常

11-09 21:07:13.536: W/dalvikvm(918): threadid=1: thread exiting with uncaught exception (group=0x40a71930) 
11-09 21:07:13.726: E/AndroidRuntime(918): FATAL EXCEPTION: main 
11-09 21:07:13.726: E/AndroidRuntime(918): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.etoy_jan/com.example.etoy_jan.BOOK}: android.view.InflateException: Binary XML file line #8: Error inflating class <unknown> 
11-09 21:07:13.726: E/AndroidRuntime(918): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180) 
11-09 21:07:13.726: E/AndroidRuntime(918): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230) 
11-09 21:07:13.726: E/AndroidRuntime(918): at android.app.ActivityThread.access$600(ActivityThread.java:141) 
11-09 21:07:13.726: E/AndroidRuntime(918): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234) 
11-09 21:07:13.726: E/AndroidRuntime(918): at android.os.Handler.dispatchMessage(Handler.java:99) 
11-09 21:07:13.726: E/AndroidRuntime(918): at android.os.Looper.loop(Looper.java:137) 
11-09 21:07:13.726: E/AndroidRuntime(918): at android.app.ActivityThread.main(ActivityThread.java:5041) 
11-09 21:07:13.726: E/AndroidRuntime(918): at java.lang.reflect.Method.invokeNative(Native Method) 
11-09 21:07:13.726: E/AndroidRuntime(918): at java.lang.reflect.Method.invoke(Method.java:511) 
11-09 21:07:13.726: E/AndroidRuntime(918): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 
11-09 21:07:13.726: E/AndroidRuntime(918): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) 
11-09 21:07:13.726: E/AndroidRuntime(918): at dalvik.system.NativeStart.main(Native Method) 
11-09 21:07:13.726: E/AndroidRuntime(918): Caused by: android.view.InflateException: Binary XML file line #8: Error inflating class <unknown> 
11-09 21:07:13.726: E/AndroidRuntime(918): at android.view.LayoutInflater.createView(LayoutInflater.java:613) 
11-09 21:07:13.726: E/AndroidRuntime(918): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56) 
11-09 21:07:13.726: E/AndroidRuntime(918): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:660) 
11-09 21:07:13.726: E/AndroidRuntime(918): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685) 
11-09 21:07:13.726: E/AndroidRuntime(918): at android.view.LayoutInflater.rInflate(LayoutInflater.java:746) 
11-09 21:07:13.726: E/AndroidRuntime(918): at android.view.LayoutInflater.inflate(LayoutInflater.java:489) 
11-09 21:07:13.726: E/AndroidRuntime(918): at android.view.LayoutInflater.inflate(LayoutInflater.java:396) 
11-09 21:07:13.726: E/AndroidRuntime(918): at android.view.LayoutInflater.inflate(LayoutInflater.java:352) 
11-09 21:07:13.726: E/AndroidRuntime(918): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:270) 
11-09 21:07:13.726: E/AndroidRuntime(918): at android.app.Activity.setContentView(Activity.java:1881) 
11-09 21:07:13.726: E/AndroidRuntime(918): at com.example.etoy_jan.BOOK.onCreate(BOOK.java:28) 
11-09 21:07:13.726: E/AndroidRuntime(918): at android.app.Activity.performCreate(Activity.java:5104) 
11-09 21:07:13.726: E/AndroidRuntime(918): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080) 
11-09 21:07:13.726: E/AndroidRuntime(918): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144) 
11-09 21:07:13.726: E/AndroidRuntime(918): ... 11 more 
11-09 21:07:13.726: E/AndroidRuntime(918): Caused by: java.lang.reflect.InvocationTargetException 
11-09 21:07:13.726: E/AndroidRuntime(918): at java.lang.reflect.Constructor.constructNative(Native Method) 
11-09 21:07:13.726: E/AndroidRuntime(918): at java.lang.reflect.Constructor.newInstance(Constructor.java:417) 
11-09 21:07:13.726: E/AndroidRuntime(918): at android.view.LayoutInflater.createView(LayoutInflater.java:587) 
11-09 21:07:13.726: E/AndroidRuntime(918): ... 24 more 
11-09 21:07:13.726: E/AndroidRuntime(918): Caused by: java.lang.OutOfMemoryError 
11-09 21:07:13.726: E/AndroidRuntime(918): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method) 
11-09 21:07:13.726: E/AndroidRuntime(918): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:502) 
11-09 21:07:13.726: E/AndroidRuntime(918): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:355) 
11-09 21:07:13.726: E/AndroidRuntime(918): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:785) 
11-09 21:07:13.726: E/AndroidRuntime(918): at android.content.res.Resources.loadDrawable(Resources.java:1965) 
11-09 21:07:13.726: E/AndroidRuntime(918): at android.content.res.TypedArray.getDrawable(TypedArray.java:601) 
11-09 21:07:13.726: E/AndroidRuntime(918): at android.widget.ImageView.<init>(ImageView.java:120) 
11-09 21:07:13.726: E/AndroidRuntime(918): at android.widget.ImageView.<init>(ImageView.java:110) 
11-09 21:07:13.726: E/AndroidRuntime(918): ... 27 more 

感謝

+0

您應該提供相關的代碼並提供您遇到的錯誤。 –

+0

你能分享你的xml文件進行這項活動嗎? – Subbu

+0

您的XML文件的第8行出現錯誤 –

回答

0

和什麼呢? 11-10 14:20:00.046:I/dalvikvm-heap(857):增長堆(碎片情況)爲45.694MB,用於19660816字節的分配

這是怎麼回事?這是錯誤的還是沉重的?