How to avoid LinearAlloc Exceeded Capacity error android

前端 未结 3 1048
野趣味
野趣味 2020-12-11 05:50

The application gets crashing every-time, when am running eclipse saying

LinearAlloc exceeded capacity (5242880), last=208

This is happenin

相关标签:
3条回答
  • 2020-12-11 06:03

    I recently hit this problem and my solution was to write wrappers for the library jar and include it in the assets directory. I also wrote a blog post explaining it with a sample project on github. Hope it helps. http://birbit.com/how-to-solve-linearalloc-problem/

    0 讨论(0)
  • 2020-12-11 06:03

    In Android 2.3.x I have this error. I don't know for sure if it's because the number of classes/methods of the App, or because complex hierarchy that I have that. I get rid of the source of Glide library and the error gone away. If I remember right, this library has working well in previous releases of my App, before I have grow up in class/method size.

    Here make me think it would be the reason:

    https://github.com/segmentio/analytics-android/issues/40#issuecomment-45190437

    0 讨论(0)
  • 2020-12-11 06:05

    It's a limitation in Dalvik triggered on unusually complex interface hierarchies.

    http://code.google.com/p/android/issues/detail?id=22586

    See the details for ideas on working around. Simple answer might be to try using different libraries that are less complex.

    A fix has been merged into Android AOSP. https://android-review.googlesource.com/#/c/30900/

    0 讨论(0)
提交回复
热议问题