0

I tried following the instructions here link text to make a scala application. However when I run the "ant install" command I get the following error

aaptexec doesn't support the "basename" attribute

I read this is because of the new sdk 7 version here. However noone on that thread seems to offer any solution.

Has anyone tried to do this with the new sdk? Thanks in advance

Para
  • 2,022
  • 5
  • 34
  • 73

3 Answers3

1

You may take a look at Building Android apps in Scala with sbt, I found it is much easier to use SBT to build Scala/Andoird application than Eclipse.

You should also use https://github.com/steve918/android-plugin instead of the plug-in describe at the page if you want use latest Android SDK.

Brian Hsu
  • 8,781
  • 3
  • 47
  • 59
  • 1
    I've seen that alternative before but I don't feel confortable not using an IDE. Also how do you debug without eclipse? – Para Dec 28 '10 at 20:34
  • If you are not comfortable not using IDE, I afraid there is not much options and harder to start. The SBT one is the most easy/convenient solution I have seen so far for developing Android using Scala. And even without Eclipse, you still could debug using a lot of tools like adb or ddms. – Brian Hsu Dec 29 '10 at 01:29
1

http://code.google.com/p/treeshaker/ may be what you're looking for.

It's a build step for Eclipse which, used together with Scala IDE, will enable you to use Scala on Android.

Carsten
  • 709
  • 5
  • 16
  • I just went through a few different Scala/Android/Eclipse paths, and Treeshaker was the only one to work as given. It had the fewest dependencies, didn't care I'm using the 2.9 plugin, and had the simplest installation. – Rodney Gitzel Aug 02 '11 at 20:47
  • 2
    Hmmm, scratch that. Turns out to STOP working with 2.9 after a few builds. https://groups.google.com/group/scala-on-android/browse_thread/thread/2dff7f72335bf3d7 Alas. – Rodney Gitzel Aug 02 '11 at 21:21
0

Solution found here to use the latest Android SDK, with Eclipse 3.7.2 and Scala 2.9 :

https://stackoverflow.com/a/11084146/1287856

  • It compiles under Android SDK 18
  • It does not have the strange side-effects of Treeshaker like forgetting to include some classes.
Community
  • 1
  • 1
Mikaël Mayer
  • 10,425
  • 6
  • 64
  • 101