I have been trying to create an android project within sbt for like 2 days now and I am getting a lot of run around. From the start I have been following this tutorial for just creating the sbt+android+intellij IDE project. which then directed me towards the android-sdk-plugin. I had to download sdks and set Paths before I finally was able to execute the sbt gen-android
command to create a android project in the command line. However when the android sbt project is created, the following cmd line command android update project -p .
does not execute because the manifest is not located at the root folder.
I troubleshooted by looking at the type safe scaloid template examples. So, my fix is to transfer both the manifest and res file to the root dir of the sbt project and move the android package to the root of the src folder to make the android update
work. I have gotten things to the point where my sbt project will compile in terminal but not within intellij after importing the same project.
Before starting this process, trying to create an sbt android project with just the IDE I was getting ANDROID_HOME not set errors during compilation. Now after everything is set as far as PATHS and sdks, I get the following error when sbt compile..
[info] Processing resources
[trace] Stack trace suppressed: run 'last compile:compile' for the full output.
[error] (compile:compile) java.lang.IllegalArgumentException: Lint must be invoked with the System property com.android.tools.lint.bindir pointing to the ANDROID_SDK tools directory
In the terminal from the exact same folder I get after sbt compile
..
[info] Loading global plugins from /Users/StramzCB/.sbt/0.13/plugins
[info] Loading project definition from /Users/StramzCB/Desktop/sbt+intJ/hello-scaloid-sbt-master/project
[info] Set current project to hello-scaloid-sbt (in build file:/Users/StramzCB/Desktop/sbt+intJ/hello-scaloid-sbt-master/)
[info] Processing resources
[success] Total time: 1 s, completed Jul 22, 2015 2:36:10 PM
Please help me on the proper current way of creating and android+sbt+intellij project. Otherwise I may have to resort to copying over source files into an sbt project just to compile an apk with, because of the 65k method limit.