get the latest SDK
after extracting, run ./tools/android
from the list select the Android version your afer, right now its Android 4.0.3 (API 15) (I also installed Android 2.3.3), click on Install packages to get the installation started
setup your env echo "export ANDROID_HOME=~/Applications/android-sdk-linux/" >> ~/.bashrc
refresh your currect session source ~/.bashrc
open File > Settings > Plugin
click on Browser repositories
find SBT, right click and select Download and install
create folder ~/bin/
(if you dont have ~/bin
in your PATH, then you can do this: echo "PATH=$PATH:~/bin" >> ~/.bashrc
(refresh your currect session source ~/.bashrc
)
download sbt-launcher.jar
and place it under ~/bin
create launcher: touch ~/bin/sbt
and then echo 'java -Xmx512M -jar `dirname $0`/sbt-launch.jar "$@"' >> ~/bin/sbt
make it executable: chmod u+x ~/bin/sbt
install giter8 curl https://raw.github.com/n8han/conscript/master/setup.sh | sh
run it ~/bin/cs n8han/giter8
create folder (if it doesnt exist) mkdir -p ~/.sbt/plugins/
create the file ~/.sbt/plugins/build.sbt
and add the following lines to it:
resolvers += "sbt-idea-repo" at "http://mpeltonen.github.com/maven/"
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.0.0")
run the android plugin project setup tool: ~/bin/g8 jberkel/android-app
, follow the onscreen questions (or press return for defaults)
this will create the project folder and create the files needed to build an android project
open the new folder cd <project name>
setup IntelliJ project support sbt gen-idea
open the project in IntelliJ