斯卡拉,Android和Eclipse的 [英] Scala, Android and Eclipse

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

问题描述

我已经开始学习Scala,我......我想我恋爱了。我只有codeD小的测试片段至今,但因为我目前工作Android开发,我真正想要做的就是尽我的手在编写Android应用程序在斯卡拉。

I've started learning Scala, and I... I think I'm in love. I've only coded small test snippets so far, but since I currently working in Android development, what I really want to do is try my hand at writing Android applications in Scala.

我已经就此事找到文章和问题,但大多指的是旧版本的三种工具(Android SDK中/斯卡拉/ Eclipse中),所以一般的问题是:

I've found articles and questions on the matter, but mostly referring to older versions of the three tools (Android SDK/Scala/Eclipse), so the general question is:

是否有人编码Android应用程序在Scala中,现在,随着最新的SDK,斯卡拉2.9和Eclipse靛蓝?如何可行的是什么呢?

和,特别是:

  1. 如何是Scala的功能和Android库之间的交互/集成?

  1. How's the interaction/integration between Scala's features and the Android library?

什么是斯卡拉的Eclipse插件的状态?我读过所有你所期望的是有特点的,但我想知道第一手的报道,特别是关于调试器。

What's the state of the Scala plugin for Eclipse? I've read all the features you'd expect are there, but I'd like to know first-hand stories, specially about the debugger.

程度如何构建过程(斯卡拉到Java的Dalvik来,蚂蚁,ProGuard的,等等)自动?

How well does the build process (scala to java to dalvik, ant, proguard, etc.) automate?

谢谢!

推荐答案

我们正在使用Scala巨资来测试我们的Andr​​oid code - 你可以阅读我们如何这样做的书面记录<一个href="http://www.swiftkey.net/test-driven-development-on-android-using-native-scala-mocking-and-dependency-injection">here.我们使用Ant或SBT编译 - 有一个很好的 SBT插件为Android开发

We are using Scala heavily to test our Android code - you can read a writeup of how we're doing so here. We use Ant or SBT to compile - there's an excellent SBT plugin for Android development.

说到了这一切,我不知道,我会建议斯卡拉生产Android开发。特别是斯卡拉2.9.x基本上是不可用的,因为没有很好的办法让图书馆工作,在Android上。你可以阅读有关问题的<一个href="http://groups.google.com/group/scala-debate/browse_thread/thread/125dd06446c8c078">here.

Having said all of that, I'm not sure that I would recommend Scala for production Android development. In particular Scala 2.9.x is basically unusable as there is no good way to get the libraries to work on Android. You can read about the issue here.

这是一个真正的遗憾,因为Android的发展将大大受益于Scala的,如果我们能得到它正常工作。

It's a real pity, as Android development would benefit considerably from Scala if we could get it working properly.

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

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