Soru & Cevap

RuntimeException:Unable to start activity ComponentInfo

16.02.2016 - 09:21

java.lang.RuntimeException:Unable to start activity ComponentInfo ardından invocationtargetexception ardından outofmemory hatasına düşüyor ve bunu bazen yapıyor

Hatanın tamamını yazıyorum eğer bir fikri olan varsa paylaşabilir mi. teşekkür ederim. Bu hata kendi tabletimde çıkmıyor. Başka bir cihazda çıkıyor o yüzden adım adım gidemiyorum. ve hergün bazı zamanlarda bu hatayı veriyor. 

Hata Mesajı : java.lang.RuntimeException: Unable to start activity ComponentInfo{com.barkosoft.OtoRoute/com.barkosoft.OtoRoute.Act_tab_Cari_Detay}: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.barkosoft.OtoRoute/com.barkosoft.OtoRoute.Act_tab_Cari_Detay_Genel}: android.view.InflateException: Binary XML file line #484: Error inflating class <unknown>
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2292)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2350)
        at android.app.ActivityThread.access$800(ActivityThread.java:163)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1257)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:157)
        at android.app.ActivityThread.main(ActivityThread.java:5335)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:515)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
        at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.barkosoft.OtoRoute/com.barkosoft.OtoRoute.Act_tab_Cari_Detay_Genel}: android.view.InflateException: Binary XML file line #484: Error inflating class <unknown>
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2292)
        at android.app.ActivityThread.startActivityNow(ActivityThread.java:2132)
        at android.app.LocalActivityManager.moveToState(LocalActivityManager.java:135)
        at android.app.LocalActivityManager.startActivity(LocalActivityManager.java:347)
        at android.widget.TabHost$IntentContentStrategy.getContentView(TabHost.java:749)
        at android.widget.TabHost.setCurrentTab(TabHost.java:413)
        at android.widget.TabHost.addTab(TabHost.java:240)
        at com.barkosoft.OtoRoute.Act_tab_Cari_Detay.onCreate(Act_tab_Cari_Detay.java:243)
        at android.app.Activity.performCreate(Activity.java:5389)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2256)
        ... 11 more
Caused by: android.view.InflateException: Binary XML file line #484: Error inflating class <unknown>
        at android.view.LayoutInflater.createView(LayoutInflater.java:626)
        at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
        at android.view.LayoutInflater.onCreateView(LayoutInflater.java:675)
        at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:700)
        at android.view.LayoutInflater.rInflate(LayoutInflater.java:761)
        at android.view.LayoutInflater.rInflate(LayoutInflater.java:769)
        at android.view.LayoutInflater.rInflate(LayoutInflater.java:769)
        at android.view.LayoutInflater.rInflate(LayoutInflater.java:769)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:498)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:398)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:354)
        at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:340)
        at android.app.Activity.setContentView(Activity.java:1973)
        at com.barkosoft.OtoRoute.Act_tab_Cari_Detay_Genel.onCreate(Act_tab_Cari_Detay_Genel.java:104)
        at android.app.Activity.performCreate(Activity.java:5389)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2256)
        ... 21 more
Caused by: java.lang.reflect.InvocationTargetException
        at java.lang.reflect.Constructor.constructNative(Native Method)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at android.view.LayoutInflater.createView(LayoutInflater.java:600)
        ... 37 more
Caused by: java.lang.OutOfMemoryError
        at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
        at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:677)
        at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:507)
        at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:872)
        at android.content.res.Resources.loadDrawable(Resources.java:3054)
        at android.content.res.Resources.getDrawable(Resources.java:1613)
        at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:176)
        at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:973)
        at android.graphics.drawable.Drawable.createFromXml(Drawable.java:913)
        at android.content.res.Resources.loadDrawable(Resources.java:3036)
        at android.content.res.TypedArray.getDrawable(TypedArray.java:602)
        at android.widget.ImageView.<init>(ImageView.java:133)
        at android.widget.ImageButton.<init>(ImageButton.java:88)

42 Görüntülenme

1 Cevap

Sitedeki sorulara cevap verebilmek için giriş yapın ya da üye olun.

picture-1372-1408467635.jpg
ahmtbrk
10.05.2016 - 03:58

Resim boyutu çok yüksek memory'i taşırıyor o yüzden.
Attığınız resmin boyutu kaç acaba?