1

我有一个在 Raspberry Pi 4 上运行的 LineageOs 16 构建,我正在尝试使用适用于 Android 的 DJI Mobile SDK 开发应用程序。

SDK 需要清单行

<uses-feature
    android:name="android.hardware.usb.accessory"
    android:required="true" /> 

为了通过 USB 连接到遥控器/无人机。但是,当我安装该应用程序时,我收到以下错误:

adb: failed to install ~/app-debug.apk: Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY: Package couldn't be installed in /data/app/com.dji.FPVDemo-r4xQI7EHLLS97SoutrNC3A==: Package com.dji.FPVDemo requires unavailable shared library android.hardware.usb; failing!

我删除了 Manifest 行,但是没有 USB 连接;我们看

E DJIUsbAccessoryReceiver: android.hardware.usb.action.USB_STATE: no connected

这就是我卡住的地方。

4

0 回答 0