为什么 OSX 无法检测 Android Galaxy S 进行 USB 调试?
我搜索了有关此问题的类似问题,但没有发现与 Mac OSX 相关的问题。
情况:
尝试在 Galaxy S 上测试 Android 应用程序(详情如下),但 Mac 未检测到该设备。尝试了以下所有操作,想知道这是否可能是驱动程序问题(我听说过有关三星 USB 调试的事情)。
问题:
1) Android USB 调试需要三星驱动吗?
2) 它们适用于 Mac OSX 吗? 3) OSX 可能无法检测到 USB 调试设备的其他原因吗?
我尝试过的事情:
- 启用USB调试@设置>>应用>>发展>> USB调试
- 启用网络共享@设置>>无线与网络>>网络共享>> USB 网络共享
- 设置网络共享模式@设置>> USB连接>>联机模式
- 通过 ./adb devices 尝试检测设备(来自平台 工具目录)
- 已验证“未知来源”已选中 @ 设置>>应用>>未知来源
- 已验证设备已连接到 Mac
- 重新启动手机
- 重新启动 Mac
- 向 adb_usb 添加了各种设备/产品 ID。 ini
- 是否./android更新了adb(这会执行adb Kill-server / start-server)
使用:
配备 Sprint 的三星 Galaxy S (4G)
Mac OSX 10.6.8
Eclipse 经典版 3.7.1
I searched for similar questions on this issue but found none related to Mac OSX.
Situation:
Trying to test android apps on a Galaxy S (Details below) but Mac is not detecting the device. Tried all the things below and have wondered whether this might be a driver issue (which I've heard things about for Samsung USB debugging).
Questions:
1) Are samsung drivers required for android USB debugging?
2) And are they available for Mac OSX?
3) Any other reasons OSX might not detect device for usb debugging?
Things I tried:
- Enabled USB Debugging @ Settings >> Applications >> Development >> USB Debugging
- Enabled Tethering @ Settings >> Wireless and network >> Tethering >> USB
Tethering - Set Tethered mode @ Settings >> USB connection >> Tethered mode
- Attempt to detect devices via ./adb devices (from platform
tools dir) - Verified that "Unknown Sources" is checked @ Settings >> Applications >> Unknown Sources
- Verified that device is connected to Mac
- Restarted phone
- Restarted mac
- Added various device / product ids to adb_usb.ini
- Did ./android update adb (which does adb kill-server / start-server)
Using:
Samsung Galaxy S (4G) with Sprint
Mac OSX 10.6.8
Eclipse Classic 3.7.1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(16)
您是否尝试过使用有源 USB 集线器连接手机?我还没有尝试过,但发现这篇博客文章表明它可能对三星 Galaxy 设备有所帮助。
http://esausilva.com /2010/10/02/如何设置-adb-android-debug-bridge-in-mac-osx/
Have you tried connecting the phone using a powered USB hub? I haven't tried it yet but found this blog post that suggests it may help for Samsung Galaxy devices.
http://esausilva.com/2010/10/02/how-to-set-up-adb-android-debug-bridge-in-mac-osx/
转到“网络共享”选择,然后取消选择“USB 网络共享”,就完成了。
这就像一个魅力。
Go to Tethering select and then deselct USB Tethering and you are done.
this worked like a charm.
确保将设备插入 Mac 本身的 USB 端口,而不是键盘 USB 端口。
make sure that you plugin your device in the usb ports on the mac itself, not on the keyboard usb-ports.
嗯,我尝试了所有的方法,手机昨天还能用,但今天就不行了。最后更换手机和 Mac 之间的电缆解决了问题。
Well I tried all kind of stuff for a phone that was working yesterday but not today. Finally replacing the cable between the phone and my mac solved the issue.
USB 驱动程序问题发生在 Windows 下。
对于 MacOS,我无事可做:ADB 找到了我的设备。
您不需要网络共享:它用于共享互联网连接。
需要USB调试。另请确保您授权 Galaxy 使用未知来源(@ 应用程序 -> 未知来源(这是一个复选框))。
USB driver problems happens under Windows.
For MacOS, I had nothing to do : ADB found my device.
You don't need tethering : it's for sharing an Internet connection.
USB Debugging is needed. Also make sure you authorize your Galaxy to use Unknown sources (@ Applications -> Unknown sources (it's a check box)).
对于很多手机来说,这种情况经常发生。对我有用的两件事是(1)在命令行中输入“adb Kill-server”,或者(2)尝试另一根电缆。
This happens all the time with lots of phones. Two things that have worked for me are (1) type "adb kill-server" at the command line, or (2) try another cable.
这可能听起来很疯狂,但我尝试了此页面上的所有建议,除了最终有效的:
使用 S7 附带的三星 USB 电缆(我的 S6 电缆也有效)
我尝试过的所有其他 USB 电缆都没有工作。我不知道到底为什么(USB 2 vs 3?),但这对我有用。
当然,请确保USB调试已打开,并且yada yada yada,但我做了所有这些,但仍然没有任何结果。当我插入 S7 附带的 USB 电缆时,我收到了 RSA 指纹消息,并确认了 USB 调试,当我单击“运行”时,该设备出现在 Android Studio 中。
华泰
--jsp
This may sound crazy, but I tried every suggestion on this page except what finally worked:
Use the Samsung USB cable that comes with the S7 (my S6 cable worked too)
Every other USB cable I tried did not work. I don't know exactly why (USB 2 vs 3?), but that is what worked for me.
Of course, make sure USB debugging is turned on, and yada yada yada, but I did all that and still NOTHING. The moment I plugged in the USB cable that came with my S7 I got the RSA fingerprint message, and confirmed USB debugging, and the device showed up in Android Studio when I clicked Run.
HTH
--jsp
转至
将存储设备连接到 PC
来源: Galaxy S II 论坛 - 帮助,Mac 无法识别我的 Galaxy S 2
Go to
Connect Storage To PC
Source: Galaxy S II Forums - Help, Mac won't recognize my galaxy S 2
这就是我在 Samsung Duos 上的工作方式:
转到
settings >更多>>关于设备(底部)
在关于设备屏幕上,转到底部并触摸“版本号”6 次(直到它不显示任何通知)
然后再次访问
设置> >更多
,它将在有关设备之前显示开发人员选项。单击开发人员选项并根据需要调整选项。现在在Mac上,点击android studio中的运行按钮,它将显示连接的设备。
资源:http://www.geekygadgetworld.com/3303 /enable-developer-option-samsung-galaxy-grand-duos
This is what worked for me on Samsung Duos:
Go to
settings > More > About device(at the bottom)
On that about device screen go to bottom and touch 6 times on the "Build number" (un till it doesn't display any notice)
Then visit again to
settings > More
and it will display developer options before the about device. Click on developer options and tweak options as you need.Now on the mac, click on run button in android studio, it will display the connected device.
Resource: http://www.geekygadgetworld.com/3303/enable-developer-option-samsung-galaxy-grand-duos
我花了一个晚上的时间用我的
Doogee DG350
来解决这个问题,它运行的是Chinese MTK 芯片组
,在 OS X 上存在 USB 问题。我发现解决方案是运行 ADBTCP/IP
模式,然后进行无线连接:这实际上是一个额外的好处,因为您可以省去 USB 电缆并进行无线调试。不回头
I spent a night fighting this problem with my
Doogee DG350
, which runs theChinese MTK chipset
which has issues with USB on OS X. I found the solution was to run ADB inTCP/IP
mode and then connect wirelessly:it's actually a bonus, cos you can dispense with the USB cable and debug wirelessly. Not looking back
这些东西都不适合我。我在 LG VS450PP 上运行 4.4.2,尝试连接到运行 OS X 10.10.5 的 Mac 笔记本电脑。即使遵循了此处和 SO 上其他地方列出的所有建议,MTP 和 PTP 都不起作用。当我从 USB 设置中选择互联网选项(然后选择以太网)时,我才收到 RSA 消息。
之后,就变成了金黄色。
None of these things worked for me. I'm running 4.4.2 on an LG VS450PP, trying to connect to a Mac laptop running OS X 10.10.5. Neither MTP nor PTP worked at all, even after following all the suggestions listed here and elsewhere on SO. I only got the RSA message when I chose the Internet option from the USB settings (and then I chose Ethernet).
After that, it was golden.
通过 tcpip 的连接有可能起作用。但是,端口 5555 可能不可用。我知道这可以工作,因为我的 Android 上有一个名为“Synctunes Wireless”的应用程序,它通过 tcpip 并使用端口 4444 无线同步桌面上的 iTunes。所以我使用了此应用程序上显示的 IP 地址和此端口,我可以在我的 Eclipse 中看到这个设备。唯一的问题是设备类型未知,因此“确定”按钮仍然处于禁用状态。所以这有潜力发挥作用。只需找到正确的端口号或可能缺少其他内容。
The connection via tcpip has a potential to work. However, the port 5555 is probably not available. I know this can work because I have an app on my Android called "Synctunes Wireless" which syncs' my itunes on my desktop wirelessly via tcpip and using port 4444. So I used the ip address and this port showing on this app and I can see this device in my Eclipse. Only thing is that the device type is unknown so the "OK" button is still disabled. So this has potential to work. Just have to find the right port number or maybe something else that is missing.
如果有人仍然遇到这个问题并正在寻找解决方案,对我有帮助的是安装智能开关 应用程序。之后我的三星设备终于出现了
If anyone still has this problem and looking for a solution, what helped me is to install Smart Switch app. After that my Samsung device finally showed up
所以我做了一些研究,因为同样的事情也发生在我身上。
如果简单的解决方案不起作用,您应该在首次启动手机时检查是否安装了 knox。
如果您确实安装了 knox,激活 USB 调试的唯一方法是将手机重置回出厂配置,以便停用 knox(也称为不再次安装),显然您最近无法选择卸载 knox电话。
So i did some research because the same thing happened to me.
If the simple solution doesn't work you should check if you installed knox when you first launch your phone.
If you did install knox the only way for you to activate usb debugging would be to reset your phone back to factory config in order to deactivate knox (aka not installing it again), apparently you don't have the option to unistall knox on recent phones.
我知道这很荒谬,但请确保您的手机有 SIM 卡!
I know it is ridiculous but do make sure your phone's got a SIM card!
要激活 Samsung Galaxy S 上的 USB 调试,请转到菜单 ->;设置->应用->发展->勾选“USB调试”。
To activate the USB debugging on Samsung Galaxy S go to Menu -> Settings -> Applications -> Development -> Check "USB debugging".