You are not logged in.

#1 2015-12-24 19:30:41

HermesT
Member
From: Spain
Registered: 2008-09-06
Posts: 36

[SOLVED] odd problem with eclipse/adb

I'm getting a odd error with eclipse/adb:

[2015-12-24 20:10:30 - adb] /opt/adsdk/sdk/platform-tools/adb: /opt/adsdk/sdk/platform-tools/adb: no se puede ejecutar el fichero binario
[2015-12-24 20:10:30 - adb] 'adb version' failed!
/opt/adsdk/sdk/platform-tools/adb: /opt/adsdk/sdk/platform-tools/adb: no se puede ejecutar el fichero binario
[2015-12-24 20:10:30 - adb] Failed to parse the output of 'adb version':
Standard Output was:

Error Output was:
/opt/adsdk/sdk/platform-tools/adb: /opt/adsdk/sdk/platform-tools/adb: no se puede ejecutar el fichero binario

adb runs well  in command line from its folder, but not trying with the full path (as eclipse do)

[user@host platform-tools]$ pwd
/opt/adsdk/sdk/platform-tools
[user@host platform-tools]$ adb version
Android Debug Bridge version 1.0.32
[user@host platform-tools]$ /opt/adsdk/sdk/platform-tools/adb version
bash: /opt/adsdk/sdk/platform-tools/adb: cannot execute binary file: Formato de ejecutable incorrecto

eclipse/adb was running ok a few days ago...before  upgrade to Plasma 5

some ideas?

Thanks!

Last edited by HermesT (2015-12-31 19:15:15)

Offline

#2 2015-12-28 14:46:57

HermesT
Member
From: Spain
Registered: 2008-09-06
Posts: 36

Re: [SOLVED] odd problem with eclipse/adb

Hi Guys.


adb binary iltself is  the problem, I think.
It seems a bug in the package...  or maybe  32 bit support is deprecated?
I've removed completely android support, and reinstalled it from AUR in a fresh installation. No changes.


Last comment on  https://aur.archlinux.org/packages/andr … orm-tools/

geo909 commented on 2015-12-22 01:10 (last edited on 2015-12-22 01:44 by geo909)   

I'm having trouble getting adb to run. When I install this package and run adb I get: "bash: /opt/android-sdk/platform-tools/adb: cannot execute binary file: Exec format error"

If on the other hand I install eg android-tools, adb runs perfectly fine.

I am using a 32 bit maching. I think this package provided adb for 64 bit machines. Am I right? Is that expected or am I missing something?

Thank you

geo909 refers to the same problem that I've...

Nobody developing for android in a 32 bit distro has the same problem...?

Offline

#3 2015-12-30 20:00:59

HermesT
Member
From: Spain
Registered: 2008-09-06
Posts: 36

Re: [SOLVED] odd problem with eclipse/adb

Hi again.

There is two versions of adb, one from 'android-tools' in /usr/bin and one from 'android-sdk-platform-tools' AUR's package in /opt/...  . Here the "with or without path" mistery... 

The two versions of adb have very different size:

user@host android-sdk-platform-tools]$ ls -l /usr/bin/adb
-rwxr-xr-x 1 root root 175392 sep 27 13:00 /usr/bin/adb
[user@host android-sdk-platform-tools]$ ls -l /opt/android-sdk/platform-tools/adb
-rwxr-xr-x 1 root root 2152530 sep 18 00:01 /opt/android-sdk/platform-tools/

I think that platform-tools AUR's package is good for both 32/64 bit machine, isn't it? I think it is something else going wrong...

Meanwhile, an overwrite of adb from /usr/bin to /opt/android-sdk/platformtools/ seems solve  the problem. But it seems to me a very poor workaround...

can anybody whith both 'adb' installed print his output for 'ls -l'?

Thanks.

Thanks

Last edited by HermesT (2015-12-30 20:01:22)

Offline

#4 2015-12-31 19:14:02

HermesT
Member
From: Spain
Registered: 2008-09-06
Posts: 36

Re: [SOLVED] odd problem with eclipse/adb

Almost solved.

A great change... and a little oblivion
Platform-tools 23.1.0 Linux changed to 64-bit without notice.
....

Downgrade to 23.0.1 and stay, till will be impossible develop in 32 bits. hmm

Many thanks.


Edit: Thanks moderator, link edited.

PS: I think this issue should be included into the android's archWiki...

Last edited by HermesT (2015-12-31 19:32:07)

Offline

#5 2015-12-31 19:20:51

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,742

Re: [SOLVED] odd problem with eclipse/adb

Your link is 404 sad


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#6 2016-07-12 16:43:10

bmacf
Member
From: Venezuela
Registered: 2016-07-05
Posts: 3

Re: [SOLVED] odd problem with eclipse/adb

I'm still having this problem, even downgrading the platform-tools to 23.0.1

/opt/android-sdk//tools/emulator: /opt/android-sdk//tools/emulator: no se puede ejecutar el fichero binario

should I downgrade the android-sdk too? I've installed the version 25.1.7-3

Offline

#7 2016-07-12 17:08:52

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,742

Re: [SOLVED] odd problem with eclipse/adb

Closing.

Hi bmacf.  This is an old thread that has been marked as solved.  Please go ahead and start a new thread so that you may own it.  Link back to this one if you feel it is relevant.

Thanks.
https://wiki.archlinux.org/index.php/Co … bumping.22


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB