MSDK not working with my new device
已完成I got a new android device and when I run the MSDK from android studio on it I get the below error and the app would not open on the device.. I switched the default config to. This is the device im using https://www.amazon.de/dp/B0CXT68489?ref=ppx_yo2ov_dt_b_fed_asin_title. Please help me
abiFilters "armeabi-v7a", "arm64-v8a"
---------------------------- PROCESS STARTED (15052) for package com.dji.sampleV5.aircraft ----------------------------
---------------------------- PROCESS ENDED (15025) for package com.dji.sampleV5.aircraft ----------------------------
---------------------------- PROCESS ENDED (15052) for package com.dji.sampleV5.aircraft ----------------------------
---------------------------- PROCESS STARTED (15082) for package com.dji.sampleV5.aircraft ----------------------------
2024-09-10 19:37:39.872 15082-15082 GraphicsEnvironment com.dji.sampleV5.aircraft V ANGLE Developer option for 'com.dji.sampleV5.aircraft' set to: 'default'
2024-09-10 19:37:39.873 15082-15082 GraphicsEnvironment com.dji.sampleV5.aircraft V ANGLE GameManagerService for com.dji.sampleV5.aircraft: false
2024-09-10 19:37:39.873 15082-15082 GraphicsEnvironment com.dji.sampleV5.aircraft V Neither updatable production driver nor prerelease driver is supported.
2024-09-10 19:37:39.883 15082-15082 NetworkSecurityConfig com.dji.sampleV5.aircraft D No Network Security Config specified, using platform default
2024-09-10 19:37:39.885 15082-15082 NetworkSecurityConfig com.dji.sampleV5.aircraft D No Network Security Config specified, using platform default
2024-09-10 19:37:39.916 15082-15082 System.err com.dji.sampleV5.aircraft W android.content.pm.PackageManager$NameNotFoundException: com.google.android.art
2024-09-10 19:37:39.916 15082-15082 System.err com.dji.sampleV5.aircraft W at android.app.ApplicationPackageManager.getPackageInfoAsUser(ApplicationPackageManager.java:253)
2024-09-10 19:37:39.916 15082-15082 System.err com.dji.sampleV5.aircraft W at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:213)
2024-09-10 19:37:39.917 15082-15082 System.err com.dji.sampleV5.aircraft W at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:207)
2024-09-10 19:37:39.917 15082-15082 System.err com.dji.sampleV5.aircraft W at com.cySdkyc.clx.Helper.initArtSdk(Helper.java:59)
2024-09-10 19:37:39.917 15082-15082 System.err com.dji.sampleV5.aircraft W at com.cySdkyc.clx.Helper.install(Helper.java:46)
2024-09-10 19:37:39.917 15082-15082 System.err com.dji.sampleV5.aircraft W at dji.sampleV5.aircraft.DJIAircraftApplication.attachBaseContext(DJIAircraftApplication.kt:17)
2024-09-10 19:37:39.917 15082-15082 System.err com.dji.sampleV5.aircraft W at android.app.Application.attach(Application.java:346)
2024-09-10 19:37:39.917 15082-15082 System.err com.dji.sampleV5.aircraft W at android.app.Instrumentation.newApplication(Instrumentation.java:1233)
2024-09-10 19:37:39.917 15082-15082 System.err com.dji.sampleV5.aircraft W at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1458)
2024-09-10 19:37:39.917 15082-15082 System.err com.dji.sampleV5.aircraft W at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1395)
2024-09-10 19:37:39.917 15082-15082 System.err com.dji.sampleV5.aircraft W at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6783)
2024-09-10 19:37:39.917 15082-15082 System.err com.dji.sampleV5.aircraft W at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
2024-09-10 19:37:39.918 15082-15082 System.err com.dji.sampleV5.aircraft W at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2141)
2024-09-10 19:37:39.918 15082-15082 System.err com.dji.sampleV5.aircraft W at android.os.Handler.dispatchMessage(Handler.java:107)
2024-09-10 19:37:39.918 15082-15082 System.err com.dji.sampleV5.aircraft W at android.os.Looper.loopOnce(Looper.java:201)
2024-09-10 19:37:39.918 15082-15082 System.err com.dji.sampleV5.aircraft W at android.os.Looper.loop(Looper.java:288)
2024-09-10 19:37:39.918 15082-15082 System.err com.dji.sampleV5.aircraft W at android.app.ActivityThread.main(ActivityThread.java:7935)
2024-09-10 19:37:39.918 15082-15082 System.err com.dji.sampleV5.aircraft W at java.lang.reflect.Method.invoke(Native Method)
2024-09-10 19:37:39.918 15082-15082 System.err com.dji.sampleV5.aircraft W at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
2024-09-10 19:37:39.918 15082-15082 System.err com.dji.sampleV5.aircraft W at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1149)
2024-09-10 19:37:39.919 15082-15082 System.err com.dji.sampleV5.aircraft W android.content.pm.PackageManager$NameNotFoundException: com.android.art
2024-09-10 19:37:39.920 15082-15082 System.err com.dji.sampleV5.aircraft W at android.app.ApplicationPackageManager.getPackageInfoAsUser(ApplicationPackageManager.java:253)
2024-09-10 19:37:39.920 15082-15082 System.err com.dji.sampleV5.aircraft W at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:213)
2024-09-10 19:37:39.920 15082-15082 System.err com.dji.sampleV5.aircraft W at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:207)
2024-09-10 19:37:39.920 15082-15082 System.err com.dji.sampleV5.aircraft W at com.cySdkyc.clx.Helper.initArtSdk(Helper.java:66)
2024-09-10 19:37:39.920 15082-15082 System.err com.dji.sampleV5.aircraft W at com.cySdkyc.clx.Helper.install(Helper.java:46)
2024-09-10 19:37:39.920 15082-15082 System.err com.dji.sampleV5.aircraft W at dji.sampleV5.aircraft.DJIAircraftApplication.attachBaseContext(DJIAircraftApplication.kt:17)
2024-09-10 19:37:39.920 15082-15082 System.err com.dji.sampleV5.aircraft W at android.app.Application.attach(Application.java:346)
2024-09-10 19:37:39.921 15082-15082 System.err com.dji.sampleV5.aircraft W at android.app.Instrumentation.newApplication(Instrumentation.java:1233)
2024-09-10 19:37:39.921 15082-15082 System.err com.dji.sampleV5.aircraft W at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1458)
2024-09-10 19:37:39.921 15082-15082 System.err com.dji.sampleV5.aircraft W at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1395)
2024-09-10 19:37:39.921 15082-15082 System.err com.dji.sampleV5.aircraft W at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6783)
2024-09-10 19:37:39.921 15082-15082 System.err com.dji.sampleV5.aircraft W at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
2024-09-10 19:37:39.921 15082-15082 System.err com.dji.sampleV5.aircraft W at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2141)
2024-09-10 19:37:39.921 15082-15082 System.err com.dji.sampleV5.aircraft W at android.os.Handler.dispatchMessage(Handler.java:107)
2024-09-10 19:37:39.921 15082-15082 System.err com.dji.sampleV5.aircraft W at android.os.Looper.loopOnce(Looper.java:201)
2024-09-10 19:37:39.921 15082-15082 System.err com.dji.sampleV5.aircraft W at android.os.Looper.loop(Looper.java:288)
2024-09-10 19:37:39.921 15082-15082 System.err com.dji.sampleV5.aircraft W at android.app.ActivityThread.main(ActivityThread.java:7935)
2024-09-10 19:37:39.921 15082-15082 System.err com.dji.sampleV5.aircraft W at java.lang.reflect.Method.invoke(Native Method)
2024-09-10 19:37:39.921 15082-15082 System.err com.dji.sampleV5.aircraft W at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
2024-09-10 19:37:39.921 15082-15082 System.err com.dji.sampleV5.aircraft W at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1149)
2024-09-10 19:37:39.977 15082-15082 mpleV5.aircraft com.dji.sampleV5.aircraft E No implementation found for void com.cySdkyc.clx.Helper.i() (tried Java_com_cySdkyc_clx_Helper_i and Java_com_cySdkyc_clx_Helper_i__)
2024-09-10 19:37:40.024 15082-15082 mpleV5.aircraft com.dji.sampleV5.aircraft W Accessing hidden method Landroid/view/WindowManagerGlobal;->getInstance()Landroid/view/WindowManagerGlobal; (unsupported, reflection, allowed)
2024-09-10 19:37:40.024 15082-15082 mpleV5.aircraft com.dji.sampleV5.aircraft W Accessing hidden field Landroid/view/WindowManagerGlobal;->mViews:Ljava/util/ArrayList; (unsupported, reflection, allowed)
2024-09-10 19:37:40.025 15082-15082 mpleV5.aircraft com.dji.sampleV5.aircraft W Accessing hidden field Landroid/app/ActivityThread;->mH:Landroid/app/ActivityThread$H; (unsupported, reflection, allowed)
2024-09-10 19:37:40.026 15082-15082 mpleV5.aircraft com.dji.sampleV5.aircraft W Accessing hidden method Landroid/app/ActivityThread;->currentActivityThread()Landroid/app/ActivityThread; (unsupported, reflection, allowed)
2024-09-10 19:37:40.026 15082-15082 mpleV5.aircraft com.dji.sampleV5.aircraft W Accessing hidden field Landroid/os/Handler;->mCallback:Landroid/os/Handler$Callback; (unsupported, reflection, allowed)
2024-09-10 19:37:40.027 15082-15082 mpleV5.aircraft com.dji.sampleV5.aircraft W Accessing hidden field Landroid/util/Singleton;->mInstance:Ljava/lang/Object; (unsupported, reflection, allowed)
2024-09-10 19:37:40.027 15082-15082 mpleV5.aircraft com.dji.sampleV5.aircraft W Accessing hidden method Landroid/util/Singleton;->get()Ljava/lang/Object; (unsupported, reflection, allowed)
2024-09-10 19:37:40.027 15082-15082 mpleV5.aircraft com.dji.sampleV5.aircraft W Accessing hidden field Landroid/app/ActivityManager;->IActivityManagerSingleton:Landroid/util/Singleton; (unsupported, reflection, allowed)
2024-09-10 19:37:40.129 15082-15112 AndroidRuntime com.dji.sampleV5.aircraft E FATAL EXCEPTION: DJIExecutor IO #1
Process: com.dji.sampleV5.aircraft, PID: 15082
java.lang.UnsatisfiedLinkError: dlopen failed: library "libconstants.so" not found
at java.lang.Runtime.loadLibrary0(Runtime.java:1077)
at java.lang.Runtime.loadLibrary0(Runtime.java:998)
at java.lang.System.loadLibrary(System.java:1661)
at dji.v5.utils.inner.ConstantsUtils.<clinit>(ConstantsUtils.java:3)
at dji.v5.utils.inner.ConstantsUtils.co_c(ConstantsUtils.java:1)
at dji.v5.utils.inner.HttpsUtils.<clinit>(HttpsUtils.java:5)
at dji.v5.utils.inner.HttpsUtils.getDJISSLSocketFactoryForJavax(HttpsUtils.java:1)
at dji.v5.network.OkHttpManager.<init>(OkHttpManager.java:9)
at dji.v5.network.OkHttpManager$Holder.<clinit>(OkHttpManager.java:2)
at dji.v5.network.OkHttpManager.getInstance(OkHttpManager.java:1)
at dji.v5.network.DJINetworkImp.<init>(DJINetworkImp.java:10)
at java.lang.Class.newInstance(Native Method)
at dji.v5.manager.SDKManager.initDJINetworkManager(SDKManager.java:2)
at dji.v5.manager.SDKManager.co_a(SDKManager.java:14)
at dji.v5.manager.SDKManager.lambda$qQ8vfHm0Pi84vcg6DvVpTrMbJgY(Unknown Source:0)
at dji.v5.manager.-$$Lambda$SDKManager$qQ8vfHm0Pi84vcg6DvVpTrMbJgY.run(Unknown Source:6)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
at java.lang.Thread.run(Thread.java:1012)
---------------------------- PROCESS STARTED (15108) for package com.dji.sampleV5.aircraft ----------------------------
2024-09-10 19:37:40.780 15082-15082 mpleV5.aircraft com.dji.sampleV5.aircraft W Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (unsupported, reflection, allowed)
2024-09-10 19:37:40.781 15082-15082 mpleV5.aircraft com.dji.sampleV5.aircraft W Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (unsupported, reflection, allowed)
2024-09-10 19:37:40.860 15082-15082 Compatibil...geReporter com.dji.sampleV5.aircraft D Compat change id reported: 210923482; UID 10153; state: ENABLED
2024-09-10 19:37:40.940 15082-15082 Compatibil...geReporter com.dji.sampleV5.aircraft D Compat change id reported: 171228096; UID 10153; state: ENABLED
2024-09-10 19:37:41.185 15082-15082 mpleV5.aircraft com.dji.sampleV5.aircraft I Rejecting re-init on previously-failed class java.lang.Class<dji.v5.utils.inner.ConstantsUtils>: java.lang.UnsatisfiedLinkError: dlopen failed: library "libconstants.so" not found
(Throwable with no stack trace)
2024-09-10 19:37:41.186 15082-15082 AndroidRuntime com.dji.sampleV5.aircraft D Shutting down VM
2024-09-10 19:37:41.187 15082-15082 Process com.dji.sampleV5.aircraft I Sending signal. PID: 15082 SIG: 9
---------------------------- PROCESS ENDED (15082) for package com.dji.sampleV5.aircraft ----------------------------
---------------------------- PROCESS ENDED (15108) for package com.dji.sampleV5.aircraft ----------------------------
-
Could you please confirm what architecture is supported by the device you are using? MSDK V5 does not support the armeabi-v7a architecture. Additionally, you can to try the first method mentioned in this article:https://sdk-forum.dji.net/hc/en-us/articles/36883481123225-Common-errors-and-solutions-when-running-sample-code -
I noticed that the link you provided shows images mentioning the model of the chip used, and A53 should support the "arm64-v8a" architecture. To be on the safe side, I recommend using `adb shell getprop ro.product.cpu.abi` to obtain the architecture supported by your current device. If the architecture is correct, you can try the first method from the article I shared earlier.
请先登录再写评论。
评论
4 条评论