gpt4 book ai didi

java - 无法导入SDK DJI android

转载 作者:行者123 更新时间:2023-12-01 18:26:05 25 4
gpt4 key购买 nike

我正在尝试integrate SDK into Application与 Android 工作室。我只是按照步骤操作,但我不知道是因为版本的原因还是我不知道...

我使用:

  • Android 工作室:3.5.3
  • x86 程序
  • 大疆SDK

我无法运行该应用程序,并且在运行该应用程序时收到此错误:

 2020-02-14 18:23:14.708 13105-13144/com.dji.importSDKDemo E/linker:
> "/data/app/com.dji.importSDKDemo-yT7PkOy_GdSaDNcQYUqr9w==/lib/x86/libffmpeg.so"
> has text relocations
> (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
> 2020-02-14 18:23:14.712 13105-13144/com.dji.importSDKDemo W/System.err: java.lang.UnsatisfiedLinkError: dlopen failed:
> "/data/app/com.dji.importSDKDemo-yT7PkOy_GdSaDNcQYUqr9w==/lib/x86/libffmpeg.so"
> has text relocations
> (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
> 2020-02-14 18:23:14.712 13105-13144/com.dji.importSDKDemo W/System.err: at java.lang.Runtime.loadLibrary0(Runtime.java:1071)
> 2020-02-14 18:23:14.713 13105-13144/com.dji.importSDKDemo W/System.err: at java.lang.Runtime.loadLibrary0(Runtime.java:1007)
> 2020-02-14 18:23:14.713 13105-13144/com.dji.importSDKDemo W/System.err: at java.lang.System.loadLibrary(System.java:1667)
> 2020-02-14 18:23:14.713 13105-13144/com.dji.importSDKDemo W/System.err: at
> dji.midware.natives.SDKRelativeJNI.<clinit>(Unknown Source:2)
> 2020-02-14 18:23:14.713 13105-13144/com.dji.importSDKDemo W/System.err: at
> dji.midware.natives.SDKRelativeJNI.native_getUsbAccessoryAttachedString(Native
> Method)
> 2020-02-14 18:23:14.713 13105-13144/com.dji.importSDKDemo W/System.err: at dji.sdk.sdkmanager.DJISDKManager.<clinit>(Unknown
> Source:32)
> 2020-02-14 18:23:14.714 13105-13144/com.dji.importSDKDemo W/System.err: at
> dji.sdk.sdkmanager.DJISDKManager.getInstance(Unknown Source:0)
> 2020-02-14 18:23:14.714 13105-13144/com.dji.importSDKDemo W/System.err: at
> com.dji.importSDKDemo.MainActivity$1.run(MainActivity.java:125)
> 2020-02-14 18:23:14.714 13105-13144/com.dji.importSDKDemo W/System.err: at
> android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289)
> 2020-02-14 18:23:14.714 13105-13144/com.dji.importSDKDemo W/System.err: at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
> 2020-02-14 18:23:14.715 13105-13144/com.dji.importSDKDemo W/System.err: at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
> 2020-02-14 18:23:14.715 13105-13144/com.dji.importSDKDemo W/System.err: at java.lang.Thread.run(Thread.java:919)
> 2020-02-14 18:23:14.715 13105-13144/com.dji.importSDKDemo D/SDKRelativeJNI: Couldn't load lib
> 2020-02-14 18:23:14.716 13105-13144/com.dji.importSDKDemo E/i.importSDKDem: No implementation found for java.lang.String
> dji.midware.natives.SDKRelativeJNI.native_getUsbAccessoryAttachedString()
> (tried
> Java_dji_midware_natives_SDKRelativeJNI_native_1getUsbAccessoryAttachedString
> and
> Java_dji_midware_natives_SDKRelativeJNI_native_1getUsbAccessoryAttachedString__)
> 2020-02-14 18:23:14.719 13105-13144/com.dji.importSDKDemo E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1
> Process: com.dji.importSDKDemo, PID: 13105
> java.lang.UnsatisfiedLinkError: No implementation found for java.lang.String
> dji.midware.natives.SDKRelativeJNI.native_getUsbAccessoryAttachedString()
> (tried
> Java_dji_midware_natives_SDKRelativeJNI_native_1getUsbAccessoryAttachedString
> and
> Java_dji_midware_natives_SDKRelativeJNI_native_1getUsbAccessoryAttachedString__)
> at dji.midware.natives.SDKRelativeJNI.native_getUsbAccessoryAttachedString(Native
> Method)
> at dji.sdk.sdkmanager.DJISDKManager.<clinit>(Unknown Source:32)
> at dji.sdk.sdkmanager.DJISDKManager.getInstance(Unknown Source:0)
> at com.dji.importSDKDemo.MainActivity$1.run(MainActivity.java:125)
> at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
> at java.lang.Thread.run(Thread.java:919)
> 2020-02-14 18:23:14.736 13105-13144/com.dji.importSDKDemo I/Process: Sending signal. PID: 13105 SIG: 9

我知道这是一个很长的错误,但我不知道它会是什么......

欢迎索取代码或屏幕截图

enter image description here

最佳答案

下面的行显示了错误的原因。由于该应用程序在模拟器上运行,因此它找不到 USB 配件。请尝试在物理设备上运行。

2020-02-14 18:23:14.713 13105-13144/com.dji.importSDKDemo W/System.err: at dji.midware.natives.SDKRelativeJNI.native_getUsbAccessoryAttachedString(Native Method)

关于java - 无法导入SDK DJI android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60231419/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com