I’m trying to use sbt to compile an Android Project made in Java, which I just inherited and want to improve with Scala.
The project is splited across several modules. I’ve created an sbt project with “g8 jberkel/android-app -b sbt-0_11“, copied all the modules to src/ leaving me with:
my-android-project ls -l src
total 96
drwxr-xr-x 14 tiagoboldt staff 476 Oct 18 16:09 AndroidApplication
drwxr-xr-x 8 tiagoboldt staff 272 Oct 18 16:09 CRCCalculatioNTool
drwxr-xr-x 10 tiagoboldt staff 340 Oct 18 16:09 CaretakerIntegration
drwxr-xr-x 13 tiagoboldt staff 442 Oct 18 16:09 ConsoleSensorNetwork
... and so on
These modules have dependencies between them, AndroidApplication is the main application I want to build. I’ve been trying to edit my project/build.scala, which I’ve altered from the original to include the following :
object AndroidBuild extends Build {
lazy val AndroidApplication = Project (
"AndroidApplication",
file("."),
settings = General.fullAndroidSettings ++ PlainJavaProject.settings
)
}
While trying to build, I always end up with:
java.io.FileNotFoundException: (rest_of_dir)/my-android-project/src/main/AndroidManifest.xml (No such file or directory)
I can’t understand how to configure it to have it look for that file in src/AndroidApplication/src/AndroidManifest.xml, instead of the default one. Already tried to play with the file value and no go :\
The documentation of both sbt and it’s android plugin didn’t help. Any help would be appreciated.
Along with libgdx, I just used this: