TL;DR; It’s hard to set up android development environment without the aid of IDE. And it’s harder for scaloid.
Download standalone SDK
Download Android SDK tools/ SDK platform tools/ SDK build tools
NB> f@ck GFW, I got around that bastard by modifying/etc/hosts
.Install sbt, reference for GFW: here
android create project --target <target-id> --name scaloidApp --path <path>/scaloidApp --activity MainActivity --package com.example.scaloidapp
Create a directory named project within your project and add the file project/plugins.sbt, in it, add the following line:
addSbtPlugin(“com.hanhuy.sbt” % “android-sdk-plugin” % “1.2.20”)Create project/build.properties and add the following line:
sbt.version=0.12.4 # newer versions may be used instead
- Create
build.sbt
in root directory(example). Remember to importandroid.Keys._
1 | import android.Keys._ |
UPDATE:
scaloid-android-plugin
fixed the building =.=