的Nexus 7平板电脑不被亚行认可不被、平板、电脑、Nexus

2023-09-07 12:47:00 作者:抑郁症患者

我有一些奇怪的行为与Android SDK和我的平板电脑。我试图得到认可我的平板电脑:

I am having some strange behavior with the android sdk and my tablet. I am attempting to get my tablet recognized with:

adb devices -l

命令。

每次我插上了平板电脑,我的电脑上弹出一个窗口的一瞬间问我认识到平板电脑作为一个摄像头,并问我,我想打开它什么应用程序。然后,它消失之前,我点击任何东西。在平板电脑,它会说允许从某某电脑USB调试?。有些时候,即会消失之前,我可以点击它。其他时候,我点击它,但ADB设备-l仍然不承认它。然后我再检查dmesg:

Each time I plug the tablet in, a window on my computer pops up for a brief moment asking me recognizing the tablet as a camera and asking me what application do I want to open it with. Then it disappears before I click anything. On the tablet, it will say "allow usb debugging from such and such computer?". Some times that will disappear before I can click it. Other times I click it, but adb devices -l still does not recognize it. Then I check dmesg:

[ 3398.180553] usb 1-1: new high-speed USB device number 45 using ehci_hcd
[ 3398.321392] usb 1-1: New USB device found, idVendor=18d1, idProduct=4e44
[ 3398.321404] usb 1-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[ 3398.321411] usb 1-1: Product: Nexus 7
[ 3398.321416] usb 1-1: Manufacturer: asus
[ 3404.230444] usb 1-1: USB disconnect, device number 45

我使用的Linux Mint的14,我已经没有任何问题,直到最近。

I am using Linux Mint 14. I've not had a problem until recently.

下面是我所采取的解决问题的步骤的列表:

Here is a list of steps I've taken to troubleshoot the problem:

重新启动我的电脑上选择不同版本的内核 在重新启动亚行与亚行杀服务器和亚行启动服务器 封堵粒线插入其他4个USB接口 重启平板电脑 双击检查USB调试仍处于启用状态(是的,它是) 的lsusb(应显示谷歌公司,但它不是) 我有最新的SDK和所有的是最新的 在谷歌搜索,但我只找到基本的故障排除步骤,我已经采取 更多步骤

我不确定自己还能做些什么。但这种损失的生产力的时间花费我。我几乎完成了我的一个公司第一个应用程序,并需要完成,所以我可以卖给他们的产品。

I am unsure what else to do. But this loss in time of productivity is costing me. I am almost finished with my first app for a company and need to complete it, so I can sell them the product.

推荐答案

您可以通过以下步骤尝试:

You can try with these steps:

停止服务器: ADB杀死服务器。 转到〜/ .android /如果不存在,创建文件:adb_usb.ini 添加符合值:0x18d1(设备的厂商ID)。 保存并关闭文件。 stop the server with: adb kill-server. Go to ~/.android/ and if doesn't exist create the file: adb_usb.ini Add a line with the value: 0x18d1 (the vendorId of your device). Save and close the file.

再试一次。对我来说,它的工作(我使用百欧元平板电脑...) 最后,如​​果你仍然有问题,你可以创建/etc/udev/rules.d/51-android.rules的udev规则,如下所示:

Try again. For me it worked (i'm using a 100 euros tablet...) Finally if you still have problems you can create an udev rule in /etc/udev/rules.d/51-android.rules, like the following:

SUBSYSTEM =="usb", ATTR{idVendor}=="18d1", MODE ="0666", GROUP ="plugdev"

和确保你的用户是在plugdev组。 希望这有助于。

And make sure that your user is in plugdev group. Hope this help.

 
精彩推荐
图片推荐