本文介绍了必须做好亚行杀服务器和启动服务器每次来识别在Ubuntu的Andr​​oid设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发在eclipse的Andr​​oid应用程序和我最近升级从Ubuntu 12.10(量子格查尔)到Ubuntu 13.04(铆足了劲猫熊)。在previous Ubuntu的版本,我承认我的Andr​​oid device.In这个新的Ubuntu版本,我必须这样做了零的问题:

I'm developing android apps in eclipse and I upgraded recently from Ubuntu 12.10 (Quantal Quetzal) to Ubuntu 13.04 (Raring Ringtail). In the previous Ubuntu version I had zero problems in recognizing my android device.In this new Ubuntu version I must do:

须藤ADB杀死服务器

须藤亚行启动服务器

为了到Ubuntu承认我的Andr​​oid设备。每次我重新启动我的电脑,当我尝试调试应用程序,我要每次运行这些命令行,使工作出现在日食问号。

in order to Ubuntu recognize my android device.Everytime I restart my computer it appears question marks in eclipse when I try to debug an app, and I have to run these command lines everytime to make it work.

任何人都知道,如果有一种方法可以permantelly认识我的电话?

Anyone knows if there is a way to recognize my phone permantelly?

推荐答案

亚行片状是一个常见的​​问题,你有正确的主意,开始亚洲开发银行的root权限。如果你有日食运行,运行它作为两个独立的命令,也就是Eclipse会试图启动亚行作为一个非root用户已运行你的启动服务器之前一个偶然的机会,所以我建议在一个命令行中运行:

adb "flakiness" is a common problem, you have the right idea to start adb with root permissions.If you have eclipse running and run it as two separate commands, there is a chance that eclipse will have tried to startup adb as a non-root user before you have run your start-server, so I recommend running in a single command line:

sudo adb kill-server && sudo adb start-server

另外你要确保你已经安装了SDK只有一个副本,Eclipse是使用相同的副本是你的路径在命令行上。

Also you want to make sure you have only one copy of the sdk installed and that eclipse is using the same copy as is on your path at the command line.

可能会抛出运行作为根逻辑到init脚本,以便当您重新启动计算机,它出现作为root - 我没有尝试这样做,虽然,永远只是控制-R,启动SER从在命令行=)

Possibly could throw the run-as-root logic into an init script so that when you restart the computer it comes up as root - I haven't tried this though, always just "control-r, start-ser" from the command line =)

这篇关于必须做好亚行杀服务器和启动服务器每次来识别在Ubuntu的Andr​​oid设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-23 09:39