MSDKV5.10.0在Android13中出现闪退崩溃
Completed求求了帮我解决,在项目中找不到libSdkyclx_clx.so,并且Locat的日志:
---------------------------- PROCESS STARTED (5436) for package com.example.msdksample ----------------------------
2024-08-20 02:41:24.406 5436-5436 ziparchive com.example.msdksample W Unable to open '/data/app/~~9b2J-jaq50Y_jBGOHHMnzQ==/com.example.msdksample-8_jE93eAY8cHQ33QbJzyzw==/base.dm': No such file or directory
2024-08-20 02:41:24.407 5436-5436 ziparchive com.example.msdksample W Unable to open '/data/app/~~9b2J-jaq50Y_jBGOHHMnzQ==/com.example.msdksample-8_jE93eAY8cHQ33QbJzyzw==/base.dm': No such file or directory
2024-08-20 02:41:24.674 5436-5436 nativeloader com.example.msdksample D Configuring clns-6 for other apk /data/app/~~9b2J-jaq50Y_jBGOHHMnzQ==/com.example.msdksample-8_jE93eAY8cHQ33QbJzyzw==/base.apk. target_sdk_version=33, uses_libraries=, library_path=/data/app/~~9b2J-jaq50Y_jBGOHHMnzQ==/com.example.msdksample-8_jE93eAY8cHQ33QbJzyzw==/lib/arm64:/data/app/~~9b2J-jaq50Y_jBGOHHMnzQ==/com.example.msdksample-8_jE93eAY8cHQ33QbJzyzw==/base.apk!/lib/arm64-v8a, permitted_path=/data:/mnt/expand:/data/user/0/com.example.msdksample
2024-08-20 02:41:24.712 5436-5436 GraphicsEnvironment com.example.msdksample V Currently set values for:
2024-08-20 02:41:24.713 5436-5436 GraphicsEnvironment com.example.msdksample V angle_gl_driver_selection_pkgs=[]
2024-08-20 02:41:24.713 5436-5436 GraphicsEnvironment com.example.msdksample V angle_gl_driver_selection_values=[]
2024-08-20 02:41:24.713 5436-5436 GraphicsEnvironment com.example.msdksample V Global.Settings values are invalid: number of packages: 0, number of values: 0
2024-08-20 02:41:24.713 5436-5436 GraphicsEnvironment com.example.msdksample V Neither updatable production driver nor prerelease driver is supported.
2024-08-20 02:41:24.836 5436-5436 nativeloader com.example.msdksample D Load /data/app/~~9b2J-jaq50Y_jBGOHHMnzQ==/com.example.msdksample-8_jE93eAY8cHQ33QbJzyzw==/lib/arm64/libSdkyclx_clx.so using ns clns-6 from class loader (caller=/data/app/~~9b2J-jaq50Y_jBGOHHMnzQ==/com.example.msdksample-8_jE93eAY8cHQ33QbJzyzw==/base.apk): ok
2024-08-20 02:41:24.964 5436-5436 libc com.example.msdksample A Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x73053449f470 in tid 5436 (mple.msdksample), pid 5436 (mple.msdksample)
2024-08-20 02:41:25.181 5460-5460 DEBUG crash_dump64 A Cmdline: com.example.msdksample
2024-08-20 02:41:25.182 5460-5460 DEBUG crash_dump64 A pid: 5436, tid: 5436, name: mple.msdksample >>> com.example.msdksample <<<
2024-08-20 02:41:25.192 5460-5460 DEBUG crash_dump64 A #01 pc 000000000002f688 /data/app/~~9b2J-jaq50Y_jBGOHHMnzQ==/com.example.msdksample-8_jE93eAY8cHQ33QbJzyzw==/lib/arm64/libSdkyclx_clx.so (DexFileLoader::LoadV28()+184) (BuildId: ea6a16759877cf1baba38fa81fafef7c4b3c711a)
2024-08-20 02:41:25.192 5460-5460 DEBUG crash_dump64 A #02 pc 0000000000041724 /data/app/~~9b2J-jaq50Y_jBGOHHMnzQ==/com.example.msdksample-8_jE93eAY8cHQ33QbJzyzw==/lib/arm64/libSdkyclx_clx.so (BuildId: ea6a16759877cf1baba38fa81fafef7c4b3c711a)
2024-08-20 02:41:25.192 5460-5460 DEBUG crash_dump64 A #03 pc 000000000003d664 /data/app/~~9b2J-jaq50Y_jBGOHHMnzQ==/com.example.msdksample-8_jE93eAY8cHQ33QbJzyzw==/lib/arm64/libSdkyclx_clx.so (JNI_OnLoad+3712) (BuildId: ea6a16759877cf1baba38fa81fafef7c4b3c711a)
-
是的,我又换了Android13的系统去运行,求教,出现的报错如下:2024-08-23 01:17:53.169 1696-1879 OplusThermalStats system_server E Error getting package info: com.example.msdksample
2024-08-23 01:17:53.171 4733-4733 Compatibil...geReporter com.example.msdksample D Compat change id reported: 171979766; UID 10140; state: ENABLED
2024-08-23 01:17:53.171 4733-4733 oplus.andr...actoryImpl com.example.msdksample I get feature:IOplusAutoResolutionFeature
2024-08-23 01:17:53.171 4733-4733 oplus.andr...actoryImpl com.example.msdksample I getOplusAutoResolutionFeature
2024-08-23 01:17:53.183 4733-4733 OplusFeatureCache com.example.msdksample I Milliseconds spent on init(): 12
2024-08-23 01:17:53.184 4733-4733 CompactWindowAppManager com.example.msdksample D initCompactApplicationInfo CompactMode: , NormalMode:
2024-08-23 01:17:53.190 4733-4733 libc com.example.msdksample W Access denied finding property "ro.odm.prev.product.name"
2024-08-23 01:17:53.191 4733-4733 LoadedApk com.example.msdksample D mApplicationInfo overrideDisplayId:null
2024-08-23 01:17:53.192 4733-4733 ziparchive com.example.msdksample W Unable to open '/data/app/~~ZXG1jL54PFn_s-9VSKVDlg==/com.example.msdksample-4Z1Blr2cP2y0p4fyKIGjRA==/base.dm': No such file or directory
2024-08-23 01:17:53.192 4733-4733 ziparchive com.example.msdksample W Unable to open '/data/app/~~ZXG1jL54PFn_s-9VSKVDlg==/com.example.msdksample-4Z1Blr2cP2y0p4fyKIGjRA==/base.dm': No such file or directory
2024-08-23 01:17:53.201 17365-17560 [10]DCS com.oplus.statistics.rom E getAppVersion--NameNotFoundException:android.content.pm.PackageManager$NameNotFoundException: com.example.msdksample
2024-08-23 01:17:53.206 17365-17560 [10]DCS com.oplus.statistics.rom E getAppVersionCode--NameNotFoundException:android.content.pm.PackageManager$NameNotFoundException: com.example.msdksample
2024-08-23 01:17:53.217 17365-17560 [10]DCS-PackageUtils com.oplus.statistics.rom E getAppVersion--NameNotFoundException:android.content.pm.PackageManager$NameNotFoundException: com.example.msdksample
2024-08-23 01:17:53.393 4733-4733 Quality com.example.msdksample I Odex status:io-error-no-oat filter:run-from-apk reason:unknown location:/data/app/~~ZXG1jL54PFn_s-9VSKVDlg==/com.example.msdksample-4Z1Blr2cP2y0p4fyKIGjRA==/base.apk cost:201
2024-08-23 01:17:53.404 4733-4733 GraphicsEnvironment com.example.msdksample V ANGLE Developer option for 'com.example.msdksample' set to: 'default'
2024-08-23 01:17:53.404 4733-4733 GraphicsEnvironment com.example.msdksample V ANGLE GameManagerService for com.example.msdksample: false
2024-08-23 01:17:53.405 4733-4733 GraphicsEnvironment com.example.msdksample V App is not on the allowlist for updatable production driver.
2024-08-23 01:17:53.406 4733-4733 mple.msdksample com.example.msdksample W start reset regions. 3072 4096
2024-08-23 01:17:53.407 4733-4733 NetworkSecurityConfig com.example.msdksample D No Network Security Config specified, using platform default
2024-08-23 01:17:53.408 4733-4733 NetworkSecurityConfig com.example.msdksample D No Network Security Config specified, using platform default
2024-08-23 01:17:53.422 4733-4733 System.err com.example.msdksample W android.content.pm.PackageManager$NameNotFoundException: com.google.android.art
2024-08-23 01:17:53.422 4733-4733 System.err com.example.msdksample W at android.app.ApplicationPackageManager.getPackageInfoAsUser(ApplicationPackageManager.java:270)
2024-08-23 01:17:53.422 4733-4733 System.err com.example.msdksample W at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:225)
2024-08-23 01:17:53.422 4733-4733 System.err com.example.msdksample W at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:217)
2024-08-23 01:17:53.422 4733-4733 System.err com.example.msdksample W at com.cySdkyc.clx.Helper.initArtSdk(Helper.java:59)
2024-08-23 01:17:53.422 4733-4733 System.err com.example.msdksample W at com.cySdkyc.clx.Helper.install(Helper.java:46)
2024-08-23 01:17:53.422 4733-4733 System.err com.example.msdksample W at com.example.msdksample.MyApplication.attachBaseContext(MyApplication.kt:18)
2024-08-23 01:17:53.422 4733-4733 System.err com.example.msdksample W at android.app.Application.attach(Application.java:361)
2024-08-23 01:17:53.422 4733-4733 System.err com.example.msdksample W at android.app.Instrumentation.newApplication(Instrumentation.java:1252)
2024-08-23 01:17:53.422 4733-4733 System.err com.example.msdksample W at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1503)
2024-08-23 01:17:53.422 4733-4733 System.err com.example.msdksample W at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1439)
2024-08-23 01:17:53.422 4733-4733 System.err com.example.msdksample W at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7213)
2024-08-23 01:17:53.422 4733-4733 System.err com.example.msdksample W at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
2024-08-23 01:17:53.422 4733-4733 System.err com.example.msdksample W at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2292)
2024-08-23 01:17:53.422 4733-4733 System.err com.example.msdksample W at android.os.Handler.dispatchMessage(Handler.java:106)
2024-08-23 01:17:53.422 4733-4733 System.err com.example.msdksample W at android.os.Looper.loopOnce(Looper.java:240)
2024-08-23 01:17:53.422 4733-4733 System.err com.example.msdksample W at android.os.Looper.loop(Looper.java:351)
2024-08-23 01:17:53.422 4733-4733 System.err com.example.msdksample W at android.app.ActivityThread.main(ActivityThread.java:8423)
2024-08-23 01:17:53.422 4733-4733 System.err com.example.msdksample W at java.lang.reflect.Method.invoke(Native Method)
2024-08-23 01:17:53.422 4733-4733 System.err com.example.msdksample W at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
2024-08-23 01:17:53.422 4733-4733 System.err com.example.msdksample W at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)
2024-08-23 01:17:53.440 4733-4733 mple.msdksample com.example.msdksample 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-08-23 01:17:53.454 4733-4733 AndroidRuntime com.example.msdksample D Shutting down VM
2024-08-23 01:17:53.454 4733-4733 AndroidRuntime com.example.msdksample E FATAL EXCEPTION: main
Process: com.example.msdksample, PID: 4733
java.lang.NoClassDefFoundError: Failed resolution of: Ldji/v5/manager/interfaces/SDKManagerCallback;
at java.lang.Class.newInstance(Native Method)
at android.app.AppComponentFactory.instantiateApplication(AppComponentFactory.java:76)
at androidx.core.app.CoreComponentFactory.instantiateApplication(CoreComponentFactory.java:52)
at android.app.Instrumentation.newApplication(Instrumentation.java:1251)
at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1503)
at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1439)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7213)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2292)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:240)
at android.os.Looper.loop(Looper.java:351)
at android.app.ActivityThread.main(ActivityThread.java:8423)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)
Caused by: java.lang.ClassNotFoundException: Didn't find class "dji.v5.manager.interfaces.SDKManagerCallback" on path: DexPathList[[zip file "/data/app/~~ZXG1jL54PFn_s-9VSKVDlg==/com.example.msdksample-4Z1Blr2cP2y0p4fyKIGjRA==/base.apk"],nativeLibraryDirectories=[/data/app/~~ZXG1jL54PFn_s-9VSKVDlg==/com.example.msdksample-4Z1Blr2cP2y0p4fyKIGjRA==/lib/arm64, /data/app/~~ZXG1jL54PFn_s-9VSKVDlg==/com.example.msdksample-4Z1Blr2cP2y0p4fyKIGjRA==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at java.lang.Class.newInstance(Native Method)
at android.app.AppComponentFactory.instantiateApplication(AppComponentFactory.java:76)
at androidx.core.app.CoreComponentFactory.instantiateApplication(CoreComponentFactory.java:52)
at android.app.Instrumentation.newApplication(Instrumentation.java:1251)
at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1503)
at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1439)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7213)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2292)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:240)
at android.os.Looper.loop(Looper.java:351)
at android.app.ActivityThread.main(ActivityThread.java:8423)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)
2024-08-23 01:17:53.461 4733-4733 Process com.example.msdksample I Sending signal. PID: 4733 SIG: 9 -
如果您是在运行MSDK的示例代码遇到了这个问题?您是否有对示例代码进行修改?如果有,能否告诉我们修改位置是什么吗?如果没有,您所设置的设备型号是什么? 如果是自行编写的项目遇到了崩溃,请按照下面的步骤检查和修改: 1,SDK依赖。下面是正确的依赖方式: implementation 'com.dji:dji-sdk-v5-aircraft:{sdkversion}' compileOnly 'com.dji:dji-sdk-v5-aircraft-provided:{sdkversion}' 2.调用了install函数。下面是参考代码: override fun attachBaseContext(base: Context?) { super.attachBaseContext(base) // 在调用 install 前,请勿调用任何 MSDK 相关 com.secneo.sdk.Helper.install(this) } 3.将SDKManager.getInstance().init切换至activity中执行或者切换到主线程内执行。 -
是的,已经被调用了,算是成功启动示例程序了吗,可以开始自主开发了?这个是logcat日志:2024-08-31 23:55:24.725 10243-18402 VRI[MainActivity] com.example.msdksample D dispatchAppVisibility visible:true
2024-08-31 23:55:24.729 10243-10243 VRI[MainActivity] com.example.msdksample D setWindowStopped stopped:false
2024-08-31 23:55:24.731 1697-1746 OplusThermalStats system_server E Error getting package info: com.example.msdksample
2024-08-31 23:55:24.731 10243-10243 ScrollOpti...neManager] com.example.msdksample D updateCurrentActivity: mCurrentActivityName=com.example.msdksample.MainActivity, isOptEnable=true, isAnimAheadEnable=true, isFrameInsertEnable=true, InsertNum=1, isEnabledForScrollChanged=false
2024-08-31 23:55:24.746 10243-10243 BufferQueueConsumer com.example.msdksample D [](id:280300000004,api:0,p:-1,c:10243) connect: controlledByApp=false
2024-08-31 23:55:24.746 10243-10243 IPCThreadState com.example.msdksample E attemptIncStrongHandle(57): Not supported
2024-08-31 23:55:24.747 10243-10243 ViewRootImplExtImpl com.example.msdksample D setUndequeuedBufferCount: 4
2024-08-31 23:55:24.747 10243-10243 VRI[MainActivity] com.example.msdksample D registerCallbacksForSync syncBuffer=false
2024-08-31 23:55:24.754 10243-16448 BLASTBufferQueue com.example.msdksample D [VRI[MainActivity]#4](f:0,a:1) acquireNextBufferLocked size=1080x2400 mFrameNumber=1 applyTransaction=true mTimestamp=391583055722339(auto) mPendingTransactions.size=0 graphicBufferId=43993350012944 transform=0
2024-08-31 23:55:24.754 10243-16448 VRI[MainActivity] com.example.msdksample D Received frameCommittedCallback lastAttemptedDrawFrameNum=1 didProduceBuffer=true syncBuffer=false
2024-08-31 23:55:24.755 10243-10243 VRI[MainActivity] com.example.msdksample D draw finished.
2024-08-31 23:55:24.755 10243-10243 ViewRootImplExtImpl com.example.msdksample D setMaxDequeuedBufferCount: 2
2024-08-31 23:55:24.837 10243-10243 VRI[MainActivity] com.example.msdksample D onFocusEvent true
2024-08-31 23:55:24.837 10243-10243 VRI[MainActivity] com.example.msdksample D send msg MSG_WINDOW_FOCUS_CHANGED with caller android.view.ViewRootImplExtImpl.markAndDumpWindowFocusChangeMsg:1005 android.view.ViewRootImpl.windowFocusChanged:9843 android.view.ViewRootImpl$WindowInputEventReceiver.onFocusEvent:9556 android.os.MessageQueue.nativePollOnce:-2 android.os.MessageQueue.next:349 android.os.Looper.loopOnce:186 android.os.Looper.loop:351 android.app.ActivityThread.main:8423 java.lang.reflect.Method.invoke:-2 com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run:584 com.android.internal.os.ZygoteInit.main:1013 <bottom of call stack> <bottom of call stack> <bottom of call stack> <bottom of call stack> <bottom of call stack> <bottom of call stack> <bottom of call stack> <bottom of call stack> <bottom of call stack>
2024-08-31 23:55:24.837 10243-10243 VRI[MainActivity] com.example.msdksample D handleWindowFocusChanged mWindowFocusChanged true mUpcomingWindowFocus true mAdded true
2024-08-31 23:55:25.839 10243-10243 OplusScrollToTopManager com.example.msdksample D com.example.msdksample/com.example.msdksample.MainActivity,This DecorView@5a3a24b[MainActivity] change focus to true
Please sign in to leave a comment.
Comments
10 comments