Thanks Johannes.

Migrating from Scala 2.10.X to Scala 2.11.X has solved this.

Am Mittwoch, 25. Februar 2015 10:22:39 UTC+1 schrieb Johannes Rudolph:
>
> Hi David, 
>
> recent Scala versions (>= 2.10) are unlikely to trigger the specific 
> issue you mention (too deep interface hierarchies) any more. 
>
> The more likely problem is this: LinearAlloc is dalvik's PermGen, so 
> if your overall codebase is too large it won't fit into the fixed size 
> space dalvik reserves for static data like code. The fixed size was 
> repeatedly increased over the course of Android releases so this might 
> be the reason why you see your code to work on more recent versions 
> but not on older ones. 
>
> There's not much you can do about it but trying to decrease the total 
> amount of classes by more aggressive proguarding, etc. 
>
> See also this issue: 
> https://code.google.com/p/android/issues/detail?id=78035 
> and this article from facebook engineers and their hack to get around 
> the issue: 
> https://www.facebook.com/notes/facebook-engineering/under-the-hood-dalvik-patch-for-facebook-for-android/10151345597798920
>  
>
> (My information may be outdated since I haven't done any Scala/Android 
> programming for a long time.) 
>
> Johannes 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"scala-on-android" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to scala-on-android+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to