I recently discovered the 'Scala on Android' option for android apps and have been working on a test app in scala. I am use to using AndroidStudio with Gradle, so I setup the latest AndroidStudio to use the gradle-android-scala-plugin and scala 2.11.6 according to:
https://github.com/saturday06/gradle-android-scala-pluginThis worked fine, but I would like to use Macroid, so I added the dependency in gradle:
compile 'org.macroid:macroid_2.11:2.0.0-M4'
This compiles fine in AndroidStudio but when I tried to run it (assembleDebug) I was getting the DexIndexException for too many methods. I tried enabling MultiDex (according to their wiki and android docs), but this just gave me a new exception:
DexException: Too many classes in --main-dex-list, main dex capacity exceeded
my deps are:
compile 'com.android.support:appcompat-v7:22.1.1'
compile 'org.scala-lang:scala-library:2.11.6'
compile 'org.macroid:macroid_2.11:2.0.0-M4'
compile "com.android.support:multidex:1.0.1"
I can't find any information on this exception. Has anyone seen it? Has anyone got a configuration of Macroid + AndroidStudio + Gradle working?
Any help would be appreciated!
B