ADK and Eclipse woes - com.android.future and USBAccessory?

ina picture ina · May 21, 2011 · Viewed 8.1k times · Source

I am trying to get ADK (Accessory Development Kit) set up with Eclipse, but after updating to API 12, to run the demokit Hello World, I get the 29 errors, the first few looking like:

com.android.future cannot be resolved, etc
UsbAccessory cannot be resolved to a type

Answer

Eric picture Eric · May 24, 2011

You need to set your build target to Google APIs, not Android. Click on Project->Properties, then in the dialog box, select Google APIs (2.3.3) instead of Android 2.3.3.