Search This Blog

07 January 2009

Installing the SDK

These instructions have been deprecated since the Linux SDK won't work on OpenSolaris (unlike IntelliJ or MPS)... I will post updated OpenSolaris instructions once I figure it out.

  1. Download the Linux version of the SDK from here.
  2. open a terminal
  3. pfexec sudo su - root
  4. cd /opt
  5. unzip ~username/Download/ (or whatever the name currently is)
  6. chown -R root:staff android-sdk-linux_x86-1.0_r2
  7. ln -s android-sdk-linux_x86-1.0_r2 android-sdk
  8. exit
  9. vi ~/.bashrc (or gedit .profile or whatever)
  • add: export ANDROID_HOME=/opt/android-sdk
  • add: export PATH=$PATH:$ANDROID_HOME/tools

Android support for IntelliJ 8

I was trying to install this plugin to enable Android support in IntelliJ 8 (Linux version on OpenSolaris). It kept failing to install the plugin.

The terminal showed:
Execute unzip[/export/home/malachi/.IntelliJIdea80/system/plugins/, /export/home/malachi/.IntelliJIdea80/config/plugins]
Execute delete[/export/home/malachi/.IntelliJIdea80/system/plugins/]

Extract the lib/android.jar from directly into ~/.IntelliJIdea80/config/plugins (not into ~/.IntelliJIdea80/config/plugins/lib)
Start IntelliJ