Android ADK USB 库未加载

发布于 2024-11-14 21:54:33 字数 794 浏览 4 评论 0原文

刚刚开始尝试 Android ADK,但我无法在我的开发手机(运行 Android 2.3.3 的 Droid X)上安装 DemoKit 项目。

当我尝试使用手机作为设备运行 DemoKit 项目时,我从控制台得到以下信息:

[2011-06-09 17:03:54 - DemoKitLaunch] Installing DemoKitLaunch.apk...
[2011-06-09 17:03:56 - DemoKitLaunch] Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY

进一步检查 LogCat 显示这是 com.android.future.usb.accessory 库的问题:

06-09 17:08:38.124: ERROR/PackageManager(1320): Package com.google.android.DemoKit requires unavailable shared library com.android.future.usb.accessory; failing!

我已经尝试过将构建目标从 Google API 2.3.3 更改为 3.1,但这并不能解决问题。 Google API 3.1 在 .jar 文件中包含 com.android.future.usb.accessory 库,而 2.3.3 API 则没有。两者都失败了。

当我在模拟器中运行它时,它会很好地安装并启动 DemoKit 应用程序,但我没有尝试让它在实际手机上安装和运行。

帮助!

Just started trying out the Android ADK, but I can't get the DemoKit project to install on my development phone, which is a Droid X running Android 2.3.3.

When I try to run the DemoKit project using the phone as the device, I get this from the console:

[2011-06-09 17:03:54 - DemoKitLaunch] Installing DemoKitLaunch.apk...
[2011-06-09 17:03:56 - DemoKitLaunch] Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY

And further inspection of the LogCat shows that it's an issue with the com.android.future.usb.accessory library:

06-09 17:08:38.124: ERROR/PackageManager(1320): Package com.google.android.DemoKit requires unavailable shared library com.android.future.usb.accessory; failing!

I've tried changing the build target around- from Google API 2.3.3 to 3.1, but that doesn't fix it. Google API 3.1 has the com.android.future.usb.accessory library in the .jar file, whereas the 2.3.3 API does not. It fails with both.

When I run it in the emulator, it installs and launches the DemoKit app just fine, but nothing I try makes it install and run on an actual phone.

Help!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

翻身的咸鱼 2024-11-21 21:54:34

请参阅http://developer.android.com/guide/topics/usb/adk。 html:它需要 2.3.4,而不是 2.3.3。

海未深 2024-11-21 21:54:34

由于您的 Droid X 运行的是 Android 2.3.3,因此它不支持 2.3.4 中添加到 Android 平台的 Accessory 模式。您将无法将 ADK 与 Droid X 一起使用;你必须坚持使用模拟器。对不起。

我的 Android 2.3.3 设备(Coby Kyros MID7015,我从 Android 2.1 升级到 Android 2.3.3)也遇到了同样的问题。

Since your Droid X is running Android 2.3.3, it does not support Accessory Mode, which was added to the Android platform in 2.3.4. You will not be able to use the ADK with your Droid X; you'll have to stick with the emulator. Sorry.

I just had the same problem with my Android 2.3.3 device (a Coby Kyros MID7015 which I upgraded from Android 2.1 to Android 2.3.3).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文