Having trouble adding Android SDK directory to eclipse

by Mohi » Sat, 07 Mar 2009 10:59:50 GMT

Sponsored Links

I have Arch Linux 64 bit version on my computer. Today, I installed
eclipse 3.4.1 using pacman. I uninstalled openjdk6 and installed Sun
JDK. Then I ran hello world application on eclipse and everything

Then I downloaded the zip android file and extracted it on my home
folder. I installed ADT according to the instructions provided in
android home page. However, due to not having swt installed, I wasn't
able to get Android editor installed.

In the next step, I had to add the android SDK directory to the
eclipse by going to Window - Preference - Android and adding the
extracted zip address in it. However, when I press apply it gives me
the following error:

[2009-03-05 18:23:24 - adb]Failed to get the adb version: Cannot run
program "/home/myname/android/sdk/tools/adb": java.io.IOException:
error=2, No such file or directory

Note that my android files are extracted in the following directory: /

I just checked the address and found out that adb actually exists.

Any idea what the problem is?


Other Threads

1. Androlib keren

Buat yg belum tau, bisa dicoba di googletalknya add friend: andro...@gmail.com 

Itu robot dr situs androlib, untuk cari software.

Caranya setelah dia jadi friend kita di googletalk, tinggal ketik software yg 

Misal: yahoo
Nanti dapet balesan software related sama yahoo apa aja beserta alamatnya.


--- Sent with SEVEN on Android - the new generation of mobile messaging

Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group, please visit the following page:

2. declaring a service


I am trying to run service example. I declare a service in a project
and want to call the service from an activity that exists in another

in first project, my AndroidManifest.xml looks like this
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
                <service android:exported="true" 
android:name=".CalculatorService" /

the CalculatorService class extends the Service class and its onBind
method looks like this
public IBinder onBind(Intent intent) {
        if(calculator == null) {
                calculator = new CalculatorImpl();
        return calculator;

The CalculatorImpl class extends Calculator.Stub class and
Calculator.java is generated from Calculator.aidl.

in the other project, in the activity onCreate there is a code like

Intent intent = new Intent(Calculator.class.getName());
boolean connected = bindService(intent, connection, BIND_AUTO_CREATE);

the method bindService returns false. what is missing in my both

note: the Calculator.java file is shared between both projects by a

thanks in advance.

3. Accessing SharedPreferences from Services and non-Activities

4. How to send JSONObject by HttpPost?

5. Aksesoris untuk Magic (Screen protector,dll

6. java.util.prefs.Preferences doesn't "work" on device?

7. Problem to count number of days between Two dates...