简体   繁体   English

IOIO Android无法通过调试在4.2.1上检测到IOIO

[英]IOIO Android cannot detect IOIO on 4.2.1 with debugging on

I am working on a IOIO project and I understand that the OS won't detect IOIO if you are using debugging on with 4.2.2 or greater due to secure debugging on a Nexus 4. I managed to downgrade it to 4.2.1 and the sample project works well with debugging on. 我正在研究IOIO项目,并且了解到由于Nexus 4上的安全调试,如果您在4.2.2或更高版本上使用调试功能,则操作系统将无法检测到IOIO。我设法将其降级为4.2.1,并且示例项目在调试时效果很好。 So, I created my own project based on the IOIOSimpleApp and everything works fine. 因此,我基于IOIOSimpleApp创建了自己的项目,并且一切正常。 However, when I add more and more UI stuff to the activity, it stopped working with debug mode on, only works if it's AOA. 但是,当我向活动中添加越来越多的UI内容时,它停止在调试模式下工作,仅在AOA时有效。 Then I simply reverted everything back to IOIOSimple App, guess what, it still doesn't work. 然后,我只是将所有内容恢复为IOIOSimple App,猜猜是什么,它仍然不起作用。

So my issue is, what is the magic that happened that makes my project doesn't work on 4.2.1 on debug mode? 所以我的问题是,什么使我的项目无法在调试模式下在4.2.1上运行的魔术? I checked everything from the Manifest to every single detail. 我检查了从清单到每个细节的所有内容。 I even tried to put the IOIOService to my project, that doesn't solve the problem either. 我什至试图将IOIOService放入我的项目,这也不能解决问题。

My reason not to post any code is because I reverted all the code back to IOIOSimpleApp, you can grab it from their github. 我之所以不发布任何代码,是因为我将所有代码都还原回了IOIOSimpleApp,您可以从其github上获取它。 Thanks! 谢谢!

From the github issues list: 从github问题列表中:

Moreover, on Android >= 4.2.2, ADB mode will NOT work and you HAVE to turn USB debugging off and use OpenAcessory or otherwise use Bluetooth. 此外,在Android> = 4.2.2上,ADB模式将不起作用,您必须关闭USB调试并使用OpenAcessory或以其他方式使用蓝牙。

src: https://github.com/ytai/ioio/issues/91 src: https//github.com/ytai/ioio/issues/91

Also you can use IOIOBridge if you want to debug your app while connected to the ioio board without bluetooth. 如果要在不连接蓝牙的情况下连接到ioio板时调试应用程序,也可以使用IOIOBridge

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM