处理找不到任何设备

Processing cannot find any device

我在开始使用 Processing 的 android 模式时遇到了很多麻烦。我花了很长时间才启用 android 模式并获得包含所有正确文件的 sdk,但就在这时出现了另一个问题:它无法检测到任何设备!

我在两部 android 手机上启用了 USB 调试,并在两部手机上都进行了测试,但没有检测到任何一部。我重启了手机,禁用并启用了 USB 调试模式,但我总是得到相同的结果。我在命令提示符下有 运行 'adb devices',但已连接设备列表始终为空。请给我建议,我应该如何从这里开始。

我的OS是Windows8.1,两部手机是红米Note 7 pro和realme 5s,都是Android9.

扩展我上面的评论:您需要确保为设备安装了 Windows ADB 驱动程序。根据我的经验,低端智能手机往往没有很好的开发人员支持。

免责声明我不拥有您提到要测试的任何设备,并且不会对尝试以下建议的任何潜在损害负责。

这里有一些相关的信息

XDA-developers forum 相关信息:

Go to Settings -> Permissions -> Install via USB: Uncheck your App if it's listed. Go to Settings -> Additional Settings -> Privacy: Check the Unknown Sources option. Go to Settings -> Additional Settings -> Developer options: Check the Install via USB option. Go to Settings -> Additional Settings -> Developer options:Enable view attribute inspection Finally Go to Settings -> Additional Settings -> Developer options:Turn off MIUI optimization. And then restart your device and whoooaaaa it will work i guaranteee..

NOTE - Signin in to MI account is required to enable Install via USB option.

SDK Manager -> SDK Tools -> Install "Google USB Driver"

Go to Windows Device Manager, find "ADB Interface" -> update driver -> select manually -> select from list -> all devices -> select folder "C:\Users\Username\AppData\Local\Android\sdk\extra s\google\usb_driver" -> select "Android ADB Interface"

Windows will warn you that this driver might not work, install it anyway

Device manager will show "Android ADB Interface" ...

还有这个页面: https://c.mi.com/thread-1906671-1-0.html

但是我不是 100% 确定它是合法的:我厌倦了 mediafire 链接。 请记住,这可能是一个有风险的下载:始终使用具有最新定义的防病毒软件进行扫描。

更新: Xiamo support Windows ADB Driver.