Scala编程为Android [英] Scala Programming for Android

查看:166
本文介绍了Scala编程为Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我也跟着教程在斯卡​​拉和Android 的使用Scala 2.7.3决赛。由此产生的Andr​​oid应用程序的工作原理,但连最基本的应用程序需要几分钟(!)来编译,需要900 KB COM pressed,这是一个显示塞的移动应用。此外,IDE内存用完飘飞。我认为DEX不是为大库,比如斯卡拉库进行。

I have followed the tutorial at Scala and Android with Scala 2.7.3 final. The resulting Android App works but even the most basic application takes several minutes (!) to compile and needs 900 kb compressed, which is a show stopper for mobile applications. Additionally, the IDE runs out of memory every now and then. I assume dex is not made for big libraries like the scala-library.

我的问题是:有没有人真正做到这一点,有没有根治这种

So my question is: Has anyone actually done this and is there any cure for this?

推荐答案

我已经写在Scala中一些基本的Andr​​oid应用程序,没有什么太史诗。没有一个Java程序员,我建议使用treeshake,我的朋友,这剔除了从的的文件。

I've written some basic Android applications in Scala, nothing too epic. Not being a Java programmer I was suggested to use a "treeshake", I was explained by a friend that this strips out all the unnecessary libraries from the jar files.

我还没有记载,但我发现,别人已经有:

I have not documented it, but I found that someone else already has:

<一个href="http://chneukirchen.org/blog/archive/2009/04/programming-for-android-with-scala.html">http://chneukirchen.org/blog/archive/2009/04/programming-for-android-with-scala.html

Proguard的不是唯一的解决方案,你可能会找到适合你的工作流或更适合您的环境的东西。

Proguard is not the only solution, you might find something that suits your work flow or is more suited for your environment.

这篇关于Scala编程为Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆