Follow the guide
https://github.com/saturday06/gradle-android-scala-plugin. It's more
up-to-date. I've repeated it successfully now with latest AS and latest
plugins.
When you complete editing build.gradle for your Android module click
Sync to sync gradle build.
And there is no "New Scala class" option in "New" so to create scala
file just select "New > File". Enter Class name with .scala extension.
And than AS will correctly display scala syntax.
Enjoy :)
On 26-Apr-15 2:43 PM, Raymond Guo wrote:
Thans for the reply,could you please tell me which version of
androidStudio and the scala gradle plugin did you use in that artical?
cause I can't install the gradle plugin to my as.
Thanks,
On Sunday, April 26, 2015 at 6:39:24 PM UTC+8, Markus Marvell wrote:
Since then things changed. There are some new solutions.
This one works for me:
http://engineering.gutefrage.net/2015/01/15/building-an-android-app-using-scala/
<http://engineering.gutefrage.net/2015/01/15/building-an-android-app-using-scala/>
Enjoy :)
On Sunday, April 26, 2015 at 6:27:22 AM UTC+3, Raymond Guo wrote:
Hi:
I'm trying to transfer my scala project to android recently,so
I found your posr.
I followed your steps but in the third step,I can not found
framework supprt all the selections.
I 'm using android Studio 1.1.0 and scala plugin 0.41.2 in
jetbrain.Do you know how to solve this?
thank you very much.
On Saturday, September 28, 2013 at 7:33:42 PM UTC+8, Markus
Marvell wrote:
Maybe this info is out of date for someone but Android
Studio has Scala support via Scala plugin (for IntelliJ).
I desparately tied to install it some days ago and it
failed to get up even from disk. Now it is on latest
A.Studio 0.2.10.
How to (correct me if i do something wrong):
1. Go Settings > Plugins > Browse Repositories > Search
Scala > Install
2. Create new project
3. Right click main module in Project pane. Select Add
Framework support > Select Scala.
4. Now strange thing. There is no Project structure
content when clicking on Project Structure (hope it's bug
in AS 0.2.10). So the way to outflank is right clicking
module > Select Open Module settings. Now the project
modules are present. (But no other staff, artifacts, libs,
etc). But anyway Scala facet can be accessed.
5. In Project Structure click main module and add
Scala-library to dependencies.
6. There is no scala source folder so create new folder
"scala" under src/main. Right click it. Select Mark
Directory As > Select Source.
7. Create Scala class for your activity in scala source
folder.
8. Add new activity to manifest.
9. Run project.
One more strange thing:
Seems project execution is one step before compilation. I
mean i change code, then Run project and it launches
previous version of compilation. So to see new one i
should Run it again. It's strange but not critical. May be
i misconfigured something. Let me know what exactly if you
have any idea.
And one more thing i can't get is how to include proguard
configuration file, as the Android facet in Project
Structure pane is deaf to clicks.
But in general Scala is usable in AS.
--
You received this message because you are subscribed to a topic in the
Google Groups "scala-on-android" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/scala-on-android/yc_bozVYJG8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
scala-on-android+unsubscr...@googlegroups.com
<mailto:scala-on-android+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.
--
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.