2017-01-22 23 views
1

我把Android Things放在我的愛迪生與Arduino中斷板上。 我運行這個例子enter link description here ,一切正常。 但是,當我嘗試使用IO13運行其他的代碼,我有這樣的問題:adb和ifconfig命令不適用於intel愛迪生與android事物SO

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. 

enter link description here

我需要使用adb命令來卸載軟件包

有人能幫助我嗎?

回答

0

要卸載已從your example安裝com.example.androidthings.simplepio包,從您的計算機中執行以下命令(不會從您的設備):

adb uninstall com.example.androidthings.simplepio 
+0

怎麼樣的ifconfig,ping和其它殼Linux命令? –

1

從發行說明:

已知問題

  • 當多個活動包含IOT_LAUNCHER類別的意圖過濾器時,系統會顯示一個應用程序選擇器,在沒有顯示器支持的設備上無法訪問該應用程序選擇器。 Android Things僅支持單個啓動器應用程序,並且此行爲將在未來版本中禁用。

您必須卸載上一個應用程序(或關閉它),因爲它持有與該引腳的開放連接。

你可以卸載特定的應用程序是這樣的:

adb uninstall com.example.androidthings.simplepio 

卜你也可以使用腳本來卸載所有其他AndroidThings應用程序(這是很方便的,當你已經用了很多樣品的播放)。

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

下載並運行該腳本,如:./clear-android-things-apps.sh,它會卸載一切

+0

這個怎麼樣:https://github.com/intel-iot-devkit/upm/issues/509 ?????我創建了這個問題,因爲intel edison中的upm傳感器簡化並且提取了intel愛迪生的i2c驅動程序的編程 –