调用SDKManager.getInstance().init闪退
Completed代码逻辑:
SDKManager.getInstance().init(this, object : SDKManagerCallback {
override fun onRegisterSuccess() {
L.e("DJIInitService onRegisterSuccess")
DJActivate.isRegisterSuccess = true
}
override fun onRegisterFailure(error: IDJIError) {
L.e("DJIInitService onRegisterFailure:errorCode=" + error.errorCode() + ";error.errorType()=" + error.errorType() + "error.description();" + error.description())
DJActivate.isRegisterSuccess = false
}
override fun onProductDisconnect(productId: Int) {
L.e("DJIInitService onProductDisconnect")
}
override fun onProductConnect(productId: Int) {
L.e("DJIInitService onProductConnect")
}
override fun onProductChanged(productId: Int) {
L.e("DJIInitService onProductChanged")
}
override fun onInitProcess(event: DJISDKInitEvent, totalProcess: Int) {
L.e("DJIInitService onInitProcess")
if (event == DJISDKInitEvent.INITIALIZE_COMPLETE) {
L.e("DJIInitService start registerApp")
SDKManager.getInstance().registerApp()
}
}
override fun onDatabaseDownloadProgress(current: Long, total: Long) {
L.e("DJIInitService onDatabaseDownloadProgress ")
}
})
确定的:
已经执行,so已经加载了的
报错信息:
日志信息:
===== Device Info =====
manufacture:DJI
product:rm510
model:DJI RC Pro Enterprise
version:V80.04.00.18 release-keys
android version:10
build num:
build name:
sdk version:29
===== App Info =====
SDKVersion:5.1.1
PackageProductCategory:AIRCRAFT
BuildVersion:696
versionCode:200
versionName:v2.0.0
===== Crash =====
java.lang.UnsatisfiedLinkError: No implementation found for java.lang.String dji.v5.utils.inner.ConstantsUtils.getConstant(int) (tried Java_dji_v5_utils_inner_ConstantsUtils_getConstant and Java_dji_v5_utils_inner_ConstantsUtils_getConstant__I)
at dji.v5.utils.inner.ConstantsUtils.getConstant(Native Method)
at dji.v5.utils.inner.ConstantsUtils.co_a(ConstantsUtils.java:1)
at dji.v5.inner.analytics.remote.co_b.<clinit>(RemoteServerController.java:1)
at dji.v5.inner.analytics.remote.co_b.co_a(RemoteServerController.java:1)
at dji.v5.inner.analytics.engine.co_a.init(AnalyticsEngine.java:6)
at dji.v5.manager.SDKManager.init(SDKManager.java:15)
at com.north.arrow.module.dji.init.InitService.registerApp(InitService.kt:43)
at com.north.arrow.module.dji.init.InitService.onHandleIntent(InitService.kt:27)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:78)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.os.HandlerThread.run(HandlerThread.java:67)
=======Thread info======Crash Name: java.lang.UnsatisfiedLinkError: No implementation found for java.lang.String dji.v5.utils.inner.ConstantsUtils.getConstant(int) (tried Java_dji_v5_utils_inner_ConstantsUtils_getConstant and Java_dji_v5_utils_inner_ConstantsUtils_getConstant__I)
Cause: null
Thread Name: IntentService[DJIInitService] 336
Thread count is: 56
Fd count is:0
Name: rrow.technology
Umask: 0077
State: S (sleeping)
Tgid: 27249
Ngid: 0
Pid: 27249
PPid: 712
TracerPid: 0
Uid: 10082 10082 10082 10082
Gid: 10082 10082 10082 10082
FDSize: 128
Groups: 3001 3002 3003 9997 20082 50082
VmPeak: 6728944 kB
VmSize: 6728944 kB
VmLck: 0 kB
VmPin: 0 kB
VmHWM: 255372 kB
VmRSS: 246612 kB
RssAnon: 138352 kB
RssFile: 107560 kB
RssShmem: 700 kB
VmData: 1787396 kB
VmStk: 8192 kB
VmExe: 28 kB
VmLib: 149984 kB
VmPTE: 1516 kB
VmSwap: 0 kB
CoreDumping: 0
Threads: 66
SigQ: 0/17143
SigPnd: 0000000000000000
ShdPnd: 0000000000000000
SigBlk: 0000000080011200
SigIgn: 0000000000000007
SigCgt: 0000000e400086f8
CapInh: 0000000000000000
CapPrm: 0000000000000000
CapEff: 0000000000000000
CapBnd: 0000000000000000
CapAmb: 0000000000000000
NoNewPrivs: 0
Seccomp: 0
Speculation_Store_Bypass: thread vulnerable
Cpus_allowed: ff
Cpus_allowed_list: 0-7
Mems_allowed: 1
Mems_allowed_list: 0
voluntary_ctxt_switches: 212
nonvoluntary_ctxt_switches: 439
============Start dump thread info============
total =56
线程号:269 = Signal Catcher
线程号:271 = HeapTaskDaemon
线程号:272 = ReferenceQueueDaemon
线程号:273 = FinalizerDaemon
线程号:274 = FinalizerWatchdogDaemon
线程号:280 = Profile Saver
线程号:306 = process reaper
线程号:2 = main
线程号:275 = Binder:27249_1
线程号:276 = Binder:27249_2
线程号:277 = Jit thread pool worker thread 0
线程号:278 = Binder:27249_3
线程号:279 = Binder:27249_4
线程号:283 = plumber-android-leaks
线程号:285 = Timer-0
线程号:286 = cached-pool-1-thread-0
线程号:287 = LeakCanary-Heap-Dump
线程号:290 = DefaultDispatcher-worker-1
线程号:291 = DefaultDispatcher-worker-2
线程号:292 = ARouter task pool No.1, thread No.1
线程号:293 = ConnectivityThread
线程号:297 = BuglyThread-1
线程号:298 = BuglyThread-2
线程号:299 = Bugly-ThreadMonitor0
线程号:300 = BuglyThread-3
线程号:301 = FileObserver
线程号:304 = pool-3-thread-1
线程号:308 = queued-work-looper
线程号:311 = TcmReceiver
线程号:312 = OkHttp ConnectionPool
线程号:313 = Okio Watchdog
线程号:314 = RenderThread
线程号:316 = OkHttp http://36.99.136.199:8100/...
线程号:318 = work_thread
线程号:319 = NetWorkSender
线程号:321 = OkHttp TaskRunner
线程号:322 = Okio Watchdog
线程号:323 = arch_disk_io_0
线程号:324 = wsgo-command-producer
线程号:325 = wsgo-command-consumer
线程号:326 = wsgo-event-producer
线程号:327 = wsgo-event-consumer
线程号:328 = DefaultDispatcher-worker-3
线程号:329 = DefaultDispatcher-worker-4
线程号:330 = DefaultDispatcher-worker-5
线程号:331 = DefaultDispatcher-worker-6
线程号:332 = OkHttp http://36.99.136.199:8108/...
线程号:333 = OkHttp http://36.99.136.199:8100/...
线程号:334 = OkHttp http://36.99.136.199:8100/...
线程号:335 = OkHttp http://36.99.136.199:8100/...
线程号:336 = IntentService[DJIInitService]
线程号:338 = LogHandlerThread
线程号:339 = OkHttp TaskRunner
线程号:340 = OkHttp http://36.99.136.199:8100/...
线程号:341 = AnalyticsEngineCallBack_Handler
线程号:342 = DJI Log #1
============end of dump ==========
Please sign in to leave a comment.
Comments
6 comments