LinearAlloc exceeded capacity (5242880), last=1092 Error while installing on my Samsung Tablet Device LinearAlloc exceeded capacity (5242880), last=1092 Error while installing on my Samsung Tablet Device android android

LinearAlloc exceeded capacity (5242880), last=1092 Error while installing on my Samsung Tablet Device


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/


One potential solution is to use Proguard to trim any unused method/classes from your app.

If you are using libraries this can quite significantly cut down the size of the app and the number of objects that need to be allocated thereby sidestepping the problem (at least up to a certain size app).