Current version of the SDK is 24.2
His post mentions downloading a tarball, then uses unzip :)
mkdir -p ~/opt cd ~/opt wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz tar xvzf android-sdk_r24.2-linux.tgz
This creates ~/opt/android-sdk-linux, which we’ll just leave as is.
Get android-mode
(package-refresh-contents) (package-install ‘android-mode)
(custom-set-variables ‘(android-mode-sdk-dir “~/opt/android-sdk-linux”))
export PATH=$PATH:~/opt/android-sdk-linux/tools
TARGET_PATH=”my_first_app” PROJECT_NAME=”My First App” COMPANY_DOMAIN=”com.mycompany” PACKAGE_NAME=”com.mycompany.my_first_app”
android create project –path “$TARGET_PATH” –name “$PROJECT_NAME” –package “$PACKAGE_NAME” –target 1
Which API to target, use “android list targets” to see the options
–activity “Test Activity”
android create project \ –path ~/tmp/my_project_2 \ –name “SinoLogic1” \ –package “com.sinologic.sinologic1” \ –target android-22 \ –activity “Sinoactive”