I have been developing a project app to learn about android, I can upload my app to my htc desire on my desktop using linux ubuntu and eclipse, I have the same setup on my laptop but I cannot upload apps to my phone. When I try to install the app to the phone it shows up in avd manager as ??????? ????? Unknown, I've googled this and the general advice is to setup a script which I have tried but I get an error message saying path does not exist, when I try to kill the adb server it says no such command even though I am in root and can see the adb file in the sdk folder, I am completely lost here anyone help with this.....
Thanks in advance
Looks like you are running Linux on your laptop. Try these steps as your normal user:
If you haven't already set up the udev rules for your device, follow these steps:
1. sudo gedit /etc/udev/rules.d/51-android.rules
2. copy/paste this line into that rules file: SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
3. sudo service udev restart
Then, restart the adb server:
cd </path/to/your>/android-sdk/tools directory
sudo ./adb kill-server
sudo ./adb start-server
If it's not there already, you can add the /path/to/your/android-sdk/tools to your $PATH variable so you don't need to cd to the directory and also won't have to use the ./ to use the adb command.
You may need to unplug/replug the USB cable to your phone after you do all this.
Related
I am trying to connect my android phone (Qmobile) with Linux mint but its not appearing in eclipse.. Actually i was appearing as unknown device before but i tried some commands from internet it is disappeared now :( can anyone help me how to connect Android phone with Linux for debugging with eclipse.
i used following commands in terminal before:
adb kill-server
sudo adb start-server
sudo gedit /etc/udev/rules.d/51-android.rules.
chmod a+r /etc/udev/rules.d/51-android.rules
Kindly Answer me if you can Thanks.
I just installed the android SDK with eclipse, straight from google's webpage, but for some reason it won't run, even when I am in the correct directory. When I use 'ls' (crunchbang linux) it show's that the file is there, but when I try to run it, it returns no such file or directory. Any ideas?
type script in your command if you adb configured.
adb stop-server
adb start-server
adb devices
I am trying to do some Android development on a Kindle Fire, however I am having trouble making my Ubuntu 11.04 recognize the device for using it with the ADB. I've added a line like this SUBSYSTEM=="usb", ATTR{idVendor}=="1949", MODE="0666", GROUP="plugdev" in my etc/udev/rules.d/51-android.rules file, restarted the computer and plugged in the Fire but still adb devices did not show it.
Any suggestions?
It seems that it works if you edit ~/.android/adb_usb.ini and add 2 lines containing 0x1949 and 0x006 and restart the adb server using
adb kill-server
adb start-server
Also, the 51-android.rules file contains the Lab126 vendor id.
You may also need to edit the inf file. See the instructions here:
http://g-ecx.images-amazon.com/images/G/01/sdk/Connecting_your_Kindle_Fire_to_ADB.pdf
Add a single line to: ~/.android/adb_usb.ini. The content of the line: 0x1949
Restart server
$ adb kill-server
$ sudo adb start-server
Worked for me on Ubuntu 11.10
There will be a number of steps you have to take. Basically you need to edit an ini file. Different steps is needed for MAC and PC.
Kindle Fire: Enable USB Debugging
At the moment I'm busy with the Android SDK. I got it working, but when I entered $sudo adb shell. It gave sudo: adb: command not found. For this problem I checked this link: adb devices command not working But if I enter $sudo adb devices now. Noting happens.
Not even *daemon not running. starting it now op port 5037 * and the rest. But it looks like this:
michiel#ubuntu: ~$ sudo adb devices
michiel#ubuntu: ~$
So I can enter the next command. Someone knows how to fix that? It's the same with $sudo adb shell. Nothings comes up.
When I enter adb devices without the sudo. I get the error:
-bash: /usr/local/sbin/adb: No such file or directory.
But it's there!
echo $PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/michiel/jdk1.6.0_29/bin:home/michiel/android-sdk-linux/tools:/home/michiel/android-sdk-linux/platform-tools
Edit
When I start Eclipse now, I get the next error: Failed to get the adb version: Cannot run program"/home/michiel/android-sdk-linux/platform-tools/adb":java.io.IOException:error=2, No such file or directory.
SOLVED
Last weekend I installed a clean install of Ubuntu. I downloaded the ia32.lib and openjdk instead of java jdk and install is manually. After some struggling I managed to connect the device and now I can see it. Thx for the help :)
I also had this problem two days ago and I searched and searched so I found that my ubuntu is 64-bit and adb is not match to ubuntu 64-bit so I used the below command in terminal:
sudo apt-get update
sudo apt-get install ia32-libs
and my problem was solved
don't forget, you should export your java-version-sdk.
Try adding the following at the end of your .bashrc file (can found in your home directory):
export PATH=:/home/michiel/android-sdk-linux/platform-tools:$PATH
Now use the adb command without sudo. This solved the problem for me.
HTH!
try to kill & start the adb server
cmd
adb kill-server
adb start-server
I think you are running on the linux platform so for that running binary will be followed by .
try with sudo .adb devices
or try with sudo .adb shell
Check adb is available in your android sdk --> platform-tools. If it
available Follow these steps:
Set android vars
Initially go to your home and press Ctrl + H it will show you hidden
files now look for .bashrc file, open it with any text editor then
place the lines below at the end of file:
export ANDROID_HOME=/myPathSdk/android-sdk-linux export
PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
Now Reboot the system
It Works!
Adb devices is not listing my Samsung Pop 5570 wen connected in with USB debugging on in ubuntu 10.10
adb devices
?????????? no permissions
i did add the 51-android.rules file in /etc/udev/rules.d folder but still adb devices shows that devices wit ?????? no permissions.
51-android.rules file has the following contents:
SUBSYSTEM=="usb_device", SYSFS{idVendor}=="04e8", MODE="0666"
please let me know if i am missing something
I resolved the issue by appending #samsung in the 51-android.rules file and copying the "adb" command to /bin folder.
$ restart udev
$ cp adb /bin
$ sudo adb kill-server
$ sudo adb start-server
$ sudo adb devices
List of devices attached
S5570e905be1c device
Edit: I suspect your subsystem name is the culprit (simply try "usb" instead). However, I am unable to comment as to whether or not that subsystem name is still valid in 10.10 as I do not know what changes have been made to udev.
First step would be to verify that your vendor id is correct with lsusb (that appears to be Samsung's vendor id, but it can't hurt to check).
I am also running 10.10, but I have an HTC device. Here is my rule file's content:
SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
After editing the file, I unplugged my device. Just in case, I kill adb's daemon:
sudo adb kill-server
I then reconnected my device and executed "adb devices". adb started the daemon without sudo. My device was listed properly.
I resolved the above problem by prefixing the 51-android-rules file with #samsung, i mean,
'#samsung SUBSYSTEM=="usb_device", SYSFS{idVendor}=="04e8", MODE="0666"'.
I killed the adb server and restarted in SU mode and then ran
$sudo adb devices,
i was able to see my device listed.