android studio无法在ubuntu笔记本电脑上检测到我的设备 [英] android studio doesn't detect my device on my ubuntu laptop

查看:152
本文介绍了android studio无法在ubuntu笔记本电脑上检测到我的设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Ubuntu笔记本电脑上通过Android Studio运行应用程序.

I am trying to run an app from Android Studio on my Ubuntu laptop.

我已启用USB调试,但仍然无法正常工作.

I have enabled USB debugging, but it is still not working.

当我在Android Studio中按运行时,它无法检测到我的设备(LG G3 Lollipop).

When I press run in Android Studio, it does not detect my device (LG G3 Lollipop).

我找不到任何帮助:(

推荐答案

首先,

打开终端,然后执行以下操作:

Open terminal and do following:

  1. 执行lsusb命令以检查您的设备是否确实已连接.

  1. Do lsusb command to check your device is indeed connected.

执行adb devices检查您的设备是否已连接,然后将其检测为处于adb模式.

Do adb devices to check if your device is connected then it is detected as in adb mode.

2.a.如果找不到以上命令,请执行sudo apt-get install android-tools-adb,然后检查它是否已列出.

2.a. if the above command is not found, do sudo apt-get install android-tools-adb and then check if it is listed.

第二,在第1步和第2步的结果中加上您的问题,以帮助我们找到正确的解决方案.

Secondly, post results of step 1 and 2 with your question to help us in finding a correct solution.

故障排除:

  1. 确保已启用 adb模式.
  2. 确保在连接到ubuntu系统时提示您在设备中选择Allow选项.
  3. 这是来自LG过去的一些用户,尝试以PTP模式而不是MTP模式连接您的设备 .
  4. 如果无法正常工作(很可能是您的情况),请尝试使用Google进行搜索.我通过按我感到幸运"进入了此页面,您应该不时尝试感到幸运. 步骤3和4的来源
  1. Make sure adb mode in enabled.
  2. Make sure you have opted for Allow option when prompted for in your device upon connecting to your ubuntu system.
  3. This one is from some past LG users, Try connecting your device in PTP mode rather than MTP mode, it surprisingly works.
  4. If it atill doesn't work, (most likely your case), try googling. I landed upon this page by pressing I'M FEELING LUCKY, you should try to feel lucky once in a while. Source for step number 3 and 4

按照页面上提到的步骤进行操作:

follow the steps as mentioned upon page:

  1. 创建文件:/etc/udev/rules.d/70-android.rules.
  2. 写入:SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666"到文件.
  3. 通过sudo chmod a+rx /etc/udev/rules.d/70-android.rules
  4. 分配适当的权限
  5. 重新启动系统并重新启动udev.
  1. Create a file: /etc/udev/rules.d/70-android.rules.
  2. Write: SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666" to the file.
  3. Assign proper permission via sudo chmod a+rx /etc/udev/rules.d/70-android.rules
  4. Reboot the system and restart udev.

作为故障排除的第二步(请确保在此步骤失败的情况下再次从步骤1开始重复故障排除)

As a second step of troubleshooting (make sure you again repeated troubleshooting from step1 in case you failed at this step)

同样,该过程:

  1. 创建文件:/etc/udev/rules.d/51-android.rules.
  2. 写入:SUBSYSTEM=="usb", ATTR{idProduct}=="1004", MODE="0666"到文件.
  3. 通过sudo chmod a+rx /etc/udev/rules.d/70-android.rules
  4. 分配适当的权限
  5. 重新启动系统并重新启动udev.
  1. Create a file: /etc/udev/rules.d/51-android.rules.
  2. Write: SUBSYSTEM=="usb", ATTR{idProduct}=="1004", MODE="0666" to the file.
  3. Assign proper permission via sudo chmod a+rx /etc/udev/rules.d/70-android.rules
  4. Reboot the system and restart udev.

这篇关于android studio无法在ubuntu笔记本电脑上检测到我的设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆