I'm having trouble getting Processing 3.3.6 (x64) for Windows 10 to recognize my LG V20 android device.
我在为Windows 10处理3.3.6(x64)以识别我的LG V20安卓设备时遇到了麻烦。
At first, I was getting a NoClassDefFoundError
when I tried to run a sketch, and the Android SDK updater had 2 suggested updates that I couldn't install due to more errors. My phone was not listed in Processing. The device was I've enabled USB debugging, and the connection works; I can transfer files fine.
起初,当我尝试运行草图时,我得到了NoClassDefFoundError,并且Android SDK更新程序有2个建议的更新,由于更多错误我无法安装。我的手机没有列在Processing中。该设备是我启用USB调试,连接工作;我可以传输文件。
After reading across the internet with little advice or success, I tried uninstalling all Android-related files on my computer, as well as any Processing-related files. I uninstalled Java, JRE and JDK. I then reinstalled them all:
在通过互联网阅读后,我没有任何建议或成功,我尝试卸载计算机上所有与Android相关的文件,以及任何与处理相关的文件。我卸载了Java,JRE和JDK。然后我重新安装它们:
-
Java 8u161 JDK and JRE
Java 8u161 JDK和JRE
Processing 3.3.6
-
Android SDK (auto-installed by Processing)
Android SDK(由Processing自动安装)
It all installed without complaint, and everything seemed fine. However, Processing still can't find or recognize my device. I've also tried these exact steps on my laptop which has a mostly clean install of Windows 10 (apart from chrome and some bloatware) with the same results.
这一切安装没有抱怨,一切似乎都很好。但是,Processing仍无法找到或识别我的设备。我也在我的笔记本电脑上尝试了这些确切的步骤,这些步骤大部分都是干净安装的Windows 10(除了镀铬和一些英国媒体报道),结果相同。
I also tried running something via Processing's emulator; I may have done this wrong, but this comes up with a "Lost connection with emulator while launching" error.
我也试过通过Processing的模拟器运行一些东西;我可能做错了,但这会出现“启动时与模拟器失去连接”错误。
From this, it feels like it HAS to be an issue with the phone, since it's on multiple PCs. But it also HAS to be an issue with the PC, since it occurs on both a phone and an emulator. Frankly, I'm dumbfounded as to what the problem is.
从这一点来看,感觉好像是手机的问题,因为它在多台PC上。但它也是PC的问题,因为它出现在手机和模拟器上。坦率地说,我对于问题是什么感到茫然。
I'm not really sure what else I can do or try; I haven't found my problem anywhere else, and tried the solutions to all similar problems with no success. Does anybody have any ideas?
我不确定我还能做什么或尝试什么;我没有在其他任何地方找到我的问题,并尝试解决所有类似的问题但没有成功。有人有什么想法吗?
EDIT: I fixed the problem. I tracked down the location of my adb.exe, and ran "adb devices" in cmd at that location. It listed one device (mine), and said it was unauthorized. A prompt appeared on my phone, and upon confirming it, the device was authorized.
编辑:我修复了问题。我找到了adb.exe的位置,并在该位置的cmd中运行了“adb devices”。它列出了一个设备(我的),并表示它是未经授权的。我的手机上出现提示,确认后,设备已获得授权。
1 个解决方案
#1
0
first off all check is your device connected to sdk by running this command
首先关闭所有检查是通过运行此命令将您的设备连接到sdk
sdk/platform-tools/adb devices
if your device name not found make sure that you have USB debug enabled
如果找不到您的设备名称,请确保已启用USB调试
goto settings/developer settings/ allow USB debug mode
转到设置/开发人员设置/允许USB调试模式
if you don't see this option search how to enable developer settings for your phone mine was like goto settings/about/software info and tap constantly on build-number for 7 times
如果您没有看到此选项搜索如何为您的手机启用开发人员设置,那么就像转到设置/关于/软件信息并持续点击内置编号7次
#1
0
first off all check is your device connected to sdk by running this command
首先关闭所有检查是通过运行此命令将您的设备连接到sdk
sdk/platform-tools/adb devices
if your device name not found make sure that you have USB debug enabled
如果找不到您的设备名称,请确保已启用USB调试
goto settings/developer settings/ allow USB debug mode
转到设置/开发人员设置/允许USB调试模式
if you don't see this option search how to enable developer settings for your phone mine was like goto settings/about/software info and tap constantly on build-number for 7 times
如果您没有看到此选项搜索如何为您的手机启用开发人员设置,那么就像转到设置/关于/软件信息并持续点击内置编号7次