手机应用程序,MainActivity.onCreate方法中,检查权限 -> 注册SDK -> 成功后触发登录(...
已完成 手机应用程序,MainActivity.onCreate方法中,检查权限 -> 注册SDK -> 成功后触发登录(UserAccountManager.getInstance().logIntoDJIUserAccount)。普通手机(Pixel2Android11)测试正常;使用M300遥控器(RM500-ENT,android版本7.1.2)测试,会持续崩溃,无法开启登录账户登录窗口。相关报错信息:
E/AndroidRuntime: FATAL EXCEPTION: main
Process: xx.xxxxx.xxxxxxx, PID: 1906
android.view.InflateException: Binary XML file line #1: Binary XML file line #1: Error inflating class x
Caused by: android.view.InflateException: Binary XML file line #1: Error inflating class x
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.x" on path: DexPathList[[zip file "/data/user/0/xx.xxxxx.xxxxxxx/.cache_sdk/sdkclasses2.jar", zip file "/data/user/0/xx.xxxxx.xxxxxxx/.cache_sdk/sdkclasses.jar", zip file "/system/framework/com.android.future.usb.accessory.jar", zip file "/data/app/xx.xxxxx.xxxxxxx-1/base.apk"],nativeLibraryDirectories=[/data/app/xx.xxxxx.xxxxxxx-1/lib/arm64, /data/app/xx.xxxxx.xxxxxxx-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
-
你普通的手机是更高级别的Android,遥控器则不是。在AndroidManifest.xml的application栏里添加android:extractNativeLibs="true"试试。 ![](https://djisdksupport.zendesk.com/attachments/token/K1AOdDLWu6kvsIRdl7lPkXnZv/?name=inline2102333938.png)
请先登录再写评论。
评论
7 条评论