我一直在开发一个项目的应用程序,以了解Android,我可以上传我的应用程序我使用Linux操作系统Ubuntu和Eclipse我的桌面上的HTC Desire,我有我的笔记本电脑相同的设置,但我不能上传应用到我的手机上。当我尝试应用程序安装到手机它AVD管理显示为??????? ?????未知的,我GOOGLE了这一点,一般的建议是设置,我已经尝试了剧本,但我得到一个错误消息,路径不存在,当我尝试要杀死它说,即使我在没有这样的命令ADB服务器根,可以看到在SDK文件夹,我这里完全失去了ADB文件的人在这方面帮助.....
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.....
在此先感谢
看起来你是在笔记本电脑上运行Linux。请尝试以下步骤为你的普通用户:
Looks like you are running Linux on your laptop. Try these steps as your normal user:
如果您尚未建立udev规则为您的设备,请按照下列步骤操作:
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
然后,重新启动服务器ADB:
Then, restart the adb server:
cd </path/to/your>/android-sdk/tools directory
sudo ./adb kill-server
sudo ./adb start-server
如果它不存在已经,您可以添加/路径/要/你/ Android的SDK /工具到$ PATH变量,因此您不必到该目录,也不会使用./使用ADB命令。
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.
您可能需要拔下/重新插入USB数据线将手机,您做了这一切之后。
You may need to unplug/replug the USB cable to your phone after you do all this.