Posts Tagged ‘adt’

ADT: The connection to adb is down, and a severe error has occured

May 10, 2013

The Android Developer Tools (ADT) version of Eclipse has a so-called “Android Virtual Device Manager”, available through the “Window” menu. It essentially holds a list of virtual device configurations. A highlighted configuration can be started.

If no configuration is started, running an application will result in the following error message:

[2013-05-10 13:54:45 - MyFirstApp] Android Launch!
[2013-05-10 13:54:45 - MyFirstApp] The connection to adb is down, and a severe error has occured.
[2013-05-10 13:54:45 - MyFirstApp] You must restart adb and Eclipse.
[2013-05-10 13:54:45 - MyFirstApp] Please ensure that adb is correctly located at '/opt/adt-bundle-linux-x86_64-20130219/sdk/platform-tools/adb' and can be executed.

Advertisements

Installing Android Developer Tools on Debian Testing

January 11, 2013

Download

Download from here.

Extract

Assuming that (i) /opt exists, (ii) you have permission to write to it, and (iii) you downloaded the amd64 version to ~/Downloads:

cd /opt
unzip ~/Downloads/adt-bundle-linux-x86_64.zip

Verify

Start by running:

cd /opt/adt-bundle-linux/eclipse
./eclipse

Add shortcut to Gnome Shell

Save the following to /usr/share/applications/adt.desktop:

[Desktop Entry]
Version=1.0
Name=Android Developer Tools
GenericName=Android Developer Tools
Comment=Android Developer Tools
Exec=/opt/adt-bundle-linux/eclipse/eclipse
Terminal=false
Icon=/opt/adt-bundle-linux/eclipse/configuration/org.eclipse.osgi/bundles/2/2/.cp/icons/android-64.png
Type=Application
Categories=Programming;
MimeType=text/x-java-source;

Notes:

  1. You must be superuser to write to this location.
  2. There are two references to the installation directory.
  3. There should be a local version of /usr/share/applications/, but I couldn’t find it.
  4. The 64-bit version depends on a 32-bit libncurses package.

At this point ADT should be registered with the gnome activity screen.