Scala编程为AndroidScala、Android

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

我也跟着教程在斯卡​​拉和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:

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.

阅读全文

相关推荐

最新文章