尝试使用我的Galaxy S2(v2.3.6)运行Android ADK。 Demokit在日食上给出了很多错误

时间:2012-02-21 15:13:13

标签: android eclipse adk

我遵循ADK网站中给出的每一步。下载并安装所有库。我试图在eclipse中运行那里给出的demokit应用程序。但是我遇到了很多错误,例如:

 "The method getAccessory(Intent) is undefined for the type String"  
 "ACTION_USB_ACCESSORY_DETACHED cannot be resolved or is not a field"
 "EXTRA_PERMISSION_GRANTED cannot be resolved or is not a field"
 "Type mismatch: cannot convert from UsbAccessory to UsbAccessoryActivity"

这些只是一些错误。得到许多类似的错误。无法将其嵌入我的手机中。

无法弄清楚该做什么......

1 个答案:

答案 0 :(得分:0)

我猜问题出现在getAccessory方法中。您向其传递一个String的参数,并期望它为Intent。但是,我们需要一段代码出现错误。

相关问题