android.os.ServiceSpecificException:GPIO2_IO02已在使用中(代码16) [英] android.os.ServiceSpecificException: GPIO2_IO02 is already in use (code 16)

查看:493
本文介绍了android.os.ServiceSpecificException:GPIO2_IO02已在使用中(代码16)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理android事物(Pico i.MX7D I/O).我得到了 android.os.ServiceSpecificException:GPIO2_IO02已经在使用中(代码16)异常,这意味着什么?请帮助我.

I am working on android things(Pico i.MX7D I/O).I got android.os.ServiceSpecificException: GPIO2_IO02 is already in use (code 16) exception,What it means by this? Please help me.

我的示例程序是从克隆的 https://github.com/androidthings/sample-button .

My sample program is cloned from https://github.com/androidthings/sample-button.

推荐答案

这意味着另一个应用程序正在后台运行,并且正在访问此图钉.如果一个应用在打开新应用之前没有完全停止,则可能会发生这种情况.

This means another app is running in the background and is currently accessing this pin. This may happen if one app is not fully stopped before a new one is opened.

您可以通过运行以下命令来查看所有已安装的应用程序:adb shell pm list packages -3

You can see all your installed apps by running: adb shell pm list packages -3

您可以通过运行adb shell am force-stop <package name>

卸载或强行停止恶意应用程序应该可以让您正确地控制它.

Uninstalling or force stopping the rogue app should allow you to properly get control of it.

正如评论所指出的那样,我没有包含执行卸载的命令. adb uninstall <package-name>

As a comment pointed out, I did not include the command to do uninstalling. adb uninstall <package-name>

这篇关于android.os.ServiceSpecificException:GPIO2_IO02已在使用中(代码16)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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