开发者

adb Problems with Ubuntu

开发者 https://www.devze.com 2023-02-13 01:20 出处:网络
I am new to Linux and am attempting to set up my machine for Android development. I installed the SDK, and I set up the path to the \"platform-tools\" in my path by altering ~/.bashrc and adding the f

I am new to Linux and am attempting to set up my machine for Android development. I installed the SDK, and I set up the path to the "platform-tools" in my path by altering ~/.bashrc and adding the following:

export PATH=$PATH:/home/user/sdk/platform-tools

When I type:

echo $PATH 

into the command line, it spits back the directory to my sdk platform-tools.

Now, when I type:

adb devices

The command lin开发者_如何学Ce says "adb command not found".

If anyone could help me out, it would be greatly appreciated. Thanks!

~Nemisis7654


The solution that worked for me was found here (Ubuntu 11.10 x64)

http://kenno.wordpress.com/2011/10/27/ubuntu-11-10-32-bit-applications-do-not-run-64-bit/

and basically even though I had the tools installed I just needed to do a reinstall of the libc6-i386 and it finally found adb.


Looks like you got the first step down, now you just need to add the udev values for your particular device. See step 3 here. If you are using an emulator rather than a device adb should work fine without this step with what you have. You have mentioned what you have done but not what the problem is so I assume this is the issue you are having. What happens when you type adb into the terminal?


With the latest android SDK, adb should be under platform-tools. Just put export ANDROID=/usr/local/android/android-sdk-linux_x86 export PATH=${PATH}:${ANDROID}/tools:${ANDROID}/platform-tools and check the file permissions (for android or other binaries too).


In older versions of the sdk, adb was located in the /sdk/tools directory. You may need to create a symbolic link from platform-tools into that directory for adb:

ln -s /home/user/sdk/platform-tools/adb /home/user/sdk/tools/adb
0

精彩评论

暂无评论...
验证码 换一张
取 消