This is a template project that can be a starting point of a new Scaloid project.
This contains minimum code as possible; therefore easy to run, examine and extend.
- sbt 0.13.0 or above
- Android SDK
- Both SDK Level 8 and the most recent version should be installed.
You can build this project using sbt:
$ sbt android:package
This will compile the project and generate an APK.
For more command, refer to android-sdk-plugin for sbt.
In sbt, ~
is a prefix that repeatedly runs the command when the source code is modified.
~ android:run
This sbt command schedules to execute compile-package-deploy-run process after you save the edited source code. Compiling and packaging runs incrementally, so this iteration takes about only few seconds.
If you use default AVD, try genymotion or other faster virtual device. Deploying apk to the device becomes much faster!
$ sbt eclipse
$ sbt gen-idea
Two more steps are needed for IDEA:
- Project Structure -> Project -> in Project SDK section, select proper Android SDK
- Porject Structure -> Modules -> add Android facet to your project module
We do not recommend to use IDEA's own Android build system, because proguard settings are complicated and not fast. Use commands from android-sdk-plugin for sbt. It runs simple and fast.
The most likely cause of this error is that your SDK build-tools are old. Update the Android SDK and retry.