Unable to understand log output in android app -
here log output. need determining begin solve issue:
if execute app in device version 4.4.2, no exception thrown, executing app on device lower version, app crashes..
12-05 11:34:50.716: e/androidruntime(327): fatal exception: main 12-05 11:34:50.716: e/androidruntime(327): java.lang.runtimeexception: unable start activity componentinfo{com.solinpromex.casajuventudtrescantos/com.solinpromex.casajuventudtrescantos.mainactivity}: android.view.inflateexception: binary xml file line #18: error inflating class <unknown> 12-05 11:34:50.716: e/androidruntime(327): @ android.app.activitythread.performlaunchactivity(activitythread.java:1647) 12-05 11:34:50.716: e/androidruntime(327): @ android.app.activitythread.handlelaunchactivity(activitythread.java:1663) 12-05 11:34:50.716: e/androidruntime(327): @ android.app.activitythread.access$1500(activitythread.java:117) 12-05 11:34:50.716: e/androidruntime(327): @ android.app.activitythread$h.handlemessage(activitythread.java:931) 12-05 11:34:50.716: e/androidruntime(327): @ android.os.handler.dispatchmessage(handler.java:99) 12-05 11:34:50.716: e/androidruntime(327): @ android.os.looper.loop(looper.java:123) 12-05 11:34:50.716: e/androidruntime(327): @ android.app.activitythread.main(activitythread.java:3683) 12-05 11:34:50.716: e/androidruntime(327): @ java.lang.reflect.method.invokenative(native method) 12-05 11:34:50.716: e/androidruntime(327): @ java.lang.reflect.method.invoke(method.java:507) 12-05 11:34:50.716: e/androidruntime(327): @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:839) 12-05 11:34:50.716: e/androidruntime(327): @ com.android.internal.os.zygoteinit.main(zygoteinit.java:597) 12-05 11:34:50.716: e/androidruntime(327): @ dalvik.system.nativestart.main(native method) 12-05 11:34:50.716: e/androidruntime(327): caused by: android.view.inflateexception: binary xml file line #18: error inflating class <unknown> 12-05 11:34:50.716: e/androidruntime(327): @ android.view.layoutinflater.createview(layoutinflater.java:518) 12-05 11:34:50.716: e/androidruntime(327): @ com.android.internal.policy.impl.phonelayoutinflater.oncreateview(phonelayoutinflater.java:56) 12-05 11:34:50.716: e/androidruntime(327): @ android.view.layoutinflater.createviewfromtag(layoutinflater.java:568) 12-05 11:34:50.716: e/androidruntime(327): @ android.view.layoutinflater.rinflate(layoutinflater.java:623) 12-05 11:34:50.716: e/androidruntime(327): @ android.view.layoutinflater.inflate(layoutinflater.java:408) 12-05 11:34:50.716: e/androidruntime(327): @ android.view.layoutinflater.inflate(layoutinflater.java:320) 12-05 11:34:50.716: e/androidruntime(327): @ android.view.layoutinflater.inflate(layoutinflater.java:276) 12-05 11:34:50.716: e/androidruntime(327): @ com.android.internal.policy.impl.phonewindow.setcontentview(phonewindow.java:207) 12-05 11:34:50.716: e/androidruntime(327): @ android.app.activity.setcontentview(activity.java:1657) 12-05 11:34:50.716: e/androidruntime(327): @ com.solinpromex.casajuventudtrescantos.mainactivity.oncreate(mainactivity.java:28) 12-05 11:34:50.716: e/androidruntime(327): @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1047) 12-05 11:34:50.716: e/androidruntime(327): @ android.app.activitythread.performlaunchactivity(activitythread.java:1611) 12-05 11:34:50.716: e/androidruntime(327): ... 11 more 12-05 11:34:50.716: e/androidruntime(327): caused by: java.lang.reflect.invocationtargetexception 12-05 11:34:50.716: e/androidruntime(327): @ java.lang.reflect.constructor.constructnative(native method) 12-05 11:34:50.716: e/androidruntime(327): @ java.lang.reflect.constructor.newinstance(constructor.java:415) 12-05 11:34:50.716: e/androidruntime(327): @ android.view.layoutinflater.createview(layoutinflater.java:505) 12-05 11:34:50.716: e/androidruntime(327): ... 22 more 12-05 11:34:50.716: e/androidruntime(327): caused by: java.lang.outofmemoryerror: bitmap size exceeds vm budget 12-05 11:34:50.716: e/androidruntime(327): @ android.graphics.bitmapfactory.nativedecodeasset(native method) 12-05 11:34:50.716: e/androidruntime(327): @ android.graphics.bitmapfactory.decodestream(bitmapfactory.java:460) 12-05 11:34:50.716: e/androidruntime(327): @ android.graphics.bitmapfactory.decoderesourcestream(bitmapfactory.java:336) 12-05 11:34:50.716: e/androidruntime(327): @ android.graphics.drawable.drawable.createfromresourcestream(drawable.java:697) 12-05 11:34:50.716: e/androidruntime(327): @ android.content.res.resources.loaddrawable(resources.java:1709) 12-05 11:34:50.716: e/androidruntime(327): @ android.content.res.typedarray.getdrawable(typedarray.java:601) 12-05 11:34:50.716: e/androidruntime(327): @ android.widget.imageview.<init>(imageview.java:118) 12-05 11:34:50.716: e/androidruntime(327): @ android.widget.imageview.<init>(imageview.java:108) 12-05 11:34:50.716: e/androidruntime(327): ... 25 more 12-05 11:34:50.726: w/activitymanager(60): force finishing
the reason clear:
12-05 11:34:50.716: e/androidruntime(327): caused by: java.lang.outofmemoryerror: bitmap size exceeds vm budget
solution: try use drawable smaller resolution.
Comments
Post a Comment