Tuesday, November 12, 2013

Android SDK Setup for Linux Mint

Android SDK Setup for Linux Mint

Quick Setup reference:
You will need to get the correct sun-java package. There are a few ways to do this. Perhaps the easiest is to update your apt repo with one of the links listed in this article here. If you choose to install the package via the oracle website (which is what I did) you will Require the 32 bit version for android. There is an overview of how to install this on linuxmint.com.

Next make sure that you download the correct SDK bundle from the android website. Download and uncompress to the folder of your choosing.

Configuring your device will require that you know your vendor id. Make sure your device is attached via USB and use the command lsusb. This will give you the vendor id. Once you have down this you should be able to add it to your /etc/udev/rules.d/51-android.rules. You will need to edit the file as root.

Here is an example configuration.
# adb protocol on passion (Nexus One) SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0600" 

Once you have this line added you will need to restart you ADB server
/sdk/platform-tools/adb kill-server
/sdk/platform-tools/adb start-server 

It might server to add a symlink to adb so you can execute it anywhere in your environment.

Lastly if you are still having trouble with the device not showing up reference this post.
Your device still can't display? Make sure your "Project Build Target" Android version is supported in your Device.
  • Check your device's Android version. In your device, select Settings->About Device.
  • Check Android version of your project. Right click your project->Properties->Android->ProjectBuildTarget.
  • Make sure that it's not newer than your device's version.


Android SCALA

For creating android application with Scala (Which is more fun) download the scala IDE.

Follow all the documentation and you should be good to go.

No comments:

Post a Comment