adb command not found in linux environment
While implementing the BluetoothChat application .apk inside G1 device, it always pops up a message:
I am not getting clearly why this error is popping up every time. Please help me. Thanks in advance. Praween | |||||
|
I found the solution to my problem. In my ~/.bashrc:
However adb is not located in the tools/, rather in platform-tools/. So I added the following
And that solved the problem for me. | |||
|
Updating the path as listed above in ~/.bashrc makes other bash commands stop working all together. the easiest way I found is to use what eaykin did but link it your /bin.
No restart required jsut type
To make sure it's working. | |||||||||
|
I had the same issue on my fresh Ubuntu 64 bit installation, and the path was set up correctly. Thus, The very helpful guys at #android-dev pointed me to the solution, namely that the 32 bit libraries hadn't been installed. On my previous computers, this had probably been pulled in as a dependency for another package. On Ubuntu (probably other Debians as well), running | |||
add comment (requires an account with 50 reputation) |
You need to add | |||
|
adb is in android-sdks/tools directory. You simply type this command: If you want to your stack traces in a text file use this command: If it is not working then go to android-sdks/platform-tools then put this command: | ||||
|
I have just resolved the problem myself on mint(ubuntu). It seems that adb is a 32 bit executable at least according to readelf -h. for the program to work in 64-bit ubuntu or whatever installation, we must have 32-bit libraries inplace. solved the problem with
I hope this is helpful. One more thing that may be of importance is oracle java 6 installed , but i am not sure this is necessary to resolve the problem. | |||
|
The way I fix this problem is:
I've done this several times and it works 100%(tested on Ubuntu 12.04 32/64bit). | ||||
|
NOTE: while using adb on Linux you'll need to type ./adb to execute adb commands unless you create a path in ~/.bashrc. In a terminal write: sudo gedit ~/.bashrc Add the following line at the end of the file. Once you're done, save and exit. Android toolsexport PATH=~/Development/adt-bundle-linux/sdk/platform-tools:~/Development/adt-bundle-linux/sdk/tools:$PATH Then in a Terminal run this command to reload your .bashrc: Code: source ~/.bashrc Now you can just run adb without put ./ before every command. | ||||
|
updating the $PATH did not work for me, therefore I added a symbolic link to adb to make it work, as follows:
| ||||
|
I had this problem when I was trying to connect my phone and trying to use adb. I did the following
And it shows my phone hence adb starts working without error. I hope it helps others | |||
|
I have same problem as you. finally as i know, in linux & mac OS, we use ./adb instead of adb | |||||
|
출처 : http://stackoverflow.com/questions/2517493/adb-command-not-found-in-linux-environment
'JAVA' 카테고리의 다른 글
인터넷 없이 android sdk 설치(install android sdk without internet) (0) | 2013.08.06 |
---|---|
Troubleshooting ADT Installation (0) | 2013.08.05 |
ADB(Android Debug Bridge) (0) | 2013.08.02 |
make boottarball 에러 (0) | 2013.07.15 |
javax.mail 수신확인 (0) | 2013.07.13 |