-
Notifications
You must be signed in to change notification settings - Fork 113
Default settings lead to java.lang.NoClassDefFoundError: ....R$layout #136
Comments
I think I've gotten to the bottom of this. During build, there were a bunch of warnings like the following:
Turns out it's the DEX compiler,
I think the problems now are:
|
Hello scvalex! Many thanks for sharing. I get the exactly same problem I think your solution is close to the solutions of this stackoverflow: http://stackoverflow.com/questions/7866723/dx-bad-class-file-magic-cafebabe-or-version-0033-0000-with-adk14 but I still haven't been able to make it work! Where do you exactly copy paste this line? You also mention: why did setting compileOrder seem to fix the issue Thank you! |
Here's the https://github.com/scvalex/combien/blob/master/project/Build.scala I don't know why changing |
Hey thanks for the response! I'll keep on trying with your code in mind to see if I can make it work. Till now I only get the same thing. As soon as the Main Activity tries to start it crashes! Anyway I am trying to create a How-To For Dummies on how to setup android + scala + intellij on ubuntu as for others to avoid spending (at least) two days hacking around with no luck as me! |
I get that too, but it hasn't caused a problem yet.
My suggestion would be to check ddms for the exact error, but whatever it |
Using Scala
2.9.2
, sbt0.12.0
, and android-plugin from the tip of the repo, this happens:Following the instructions in the Getting Started guide, the resulting project compiles, installs, but fails to start with the error:
Adding the following to
fullAndroidSettings
in `Build.scala' seems to fix the problem:I haven't been able to figure out what's going on or why that change fixes it.
The text was updated successfully, but these errors were encountered: