2

我用 Arduino 分线板将 Android Things SO 放在我的英特尔 Edison 中。我运行此示例,在此处输入链接描述 ,一切正常。但是当我尝试使用 IO13 运行其他代码时,我遇到了这个问题:

 E/HomeActivity: Error on PeripheralIO API
com.google.android.things.pio.PioException: android.os.ServiceSpecificException: IO13 is already in use But I can not do it.

在此处输入链接描述

我需要使用 adb 命令来卸载软件包

有人可以帮我吗?

4

2 回答 2

3

从发行说明:

已知的问题

  • 当多个活动包含 IOT_LAUNCHER 类别的意图过滤器时,系统会显示一个应用程序选择器,在没有显示支持的设备上无法访问该应用程序选择器。Android Things 仅支持单个启动器应用,此行为将在未来版本中禁用。

您必须卸载以前的应用程序(或关闭它),因为它与该引脚保持打开连接。

您可以像这样卸载该特定应用程序:

 adb uninstall com.example.androidthings.simplepio

但是,您还可以使用脚本卸载所有其他 AndroidThings 应用程序(当您使用大量示例时,这很方便)。

https://gist.github.com/blundell/7c0c3bb17898b28fe8122b0dc230af50

下载并运行此脚本,如:./clear-android-things-apps.sh它将卸载所有内容

于 2017-01-22T19:21:12.703 回答
2

要卸载从您的示例com.example.androidthings.simplepio中安装的软件包,请从您的计算机(而不是您的设备)执行以下命令:

adb uninstall com.example.androidthings.simplepio
于 2017-01-22T00:35:56.820 回答