开发者

unavailable shared library com.android.hardware.usb

I am tryin to develop an apk to mount the SDcard to PC(as a part of bigger project). But every time I run my program I get the following error: Package com.prac requires unavailable shared library com.android.hardware.usb(or com.android.future.usb) depending on whether I am using virtual device with build 开发者_Go百科target as SDK API12(or google sdk api11).

I need to run the above apk on a API10 device, so I guess using com.android.future.usb would be suitable.

Please suggest me a appropriate solution because I have already wasted 5 days trying to solve this issue.


You'll need the USB compatibility library for Gingerbread, contained in the Google APIs add-on if you want to build against com.android.future.usb. As noted on the USB Accessory page, however, not all devices will support this; it's something that the device manufacturers need to add and at this point, I believe, only the Nexus One and Nexus S running version 2.3.4 have this support.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜