dji-sdk / Mobile-SDK-Android-V5

MSDK V5 Sample
Other
247 stars 126 forks source link

V5.9.1 Sample App Crash after small modification #371

Open esieke opened 2 weeks ago

esieke commented 2 weeks ago

Sample App V5.9.1 Device samsung SM-G990B2 Android API 34 and Pixle 5

Reproduce the crash

  1. build and run (debug) the APP
  2. the APP works as expected
  3. change line 81 of MSDKInfoVm.kt to LogUtils.i(tag, "test KeyConnection:$it")
  4. build and run (debugmode) the APP
  5. the APP crashes and exits

Cause research The error seems to happen when calling com.secneo.sdk.Helper.install(this) in file DJIAircraftApplication.kt line 17.

If you uninstall the APP after the crash, it can be started again without crashing.

log.txt

dji-dev commented 1 week ago

Agent comment from yating.liao in Zendesk ticket #109804:

Could the issue be related to the device you are using? Have you tried running your code on a device with Android 11 or Android 10? We have received reports of similar crashes from other developers on Android 12 devices. I am currently trying to reproduce this issue.

Mobile SDK cannot run on an Android emulator.

°°°

esieke commented 1 week ago

Thanks for your response. I have the issue on Galaxy S21 FE 5G and Google Pixle5.

Unfortunately both devices run on Android 14. I think Android 14 is not supported? In this case you can close the issue, was my fault.

Hadn't problems with version V5.8.0. Therefore I didn't notice my mistake.

dji-dev commented 1 week ago

Agent comment from yating.liao in Zendesk ticket #109804:

If you haven't changed the TargetSDKVersion to 34, then there should be no issue. We will analyze your logs, so please wait for some time.

°°°

dji-lyt commented 3 days ago

image If you encounter this crash while debugging App on Android Studio, you can try checking this option and then attempt to run it.

esieke commented 1 day ago

Hello, looks good so far. Hadn't issues today using your suggested solution. Thanks a lot!

Should I use this Solution permanently? Or is this issue still related to a bug?

dji-dev commented 23 hours ago

Agent comment from yating.liao in Zendesk ticket #109804:

The bug you encountered is actually related to installing the app in Android Studio, so this option helps you solve the crash issue. You can continue using it.

°°°

dji-dev commented 23 hours ago

Agent comment from yating.liao in Zendesk ticket #109804:

The bug you encountered is actually related to installing the app in Android Studio, so this option helps you solve the crash issue. You can continue using it.

°°°

dji-dev commented 23 hours ago

Agent comment from yating.liao in Zendesk ticket #109804:

The bug you encountered is actually related to installing the app in Android Studio, so this option helps you solve the crash issue. You can continue using it.

°°°

dji-dev commented 23 hours ago

Agent comment from yating.liao in Zendesk ticket #109804:

The bug you encountered is actually related to installing the app in Android Studio, so this option helps you solve the crash issue. You can continue using it.

°°°

dji-dev commented 22 hours ago

Agent comment from yating.liao in Zendesk ticket #109804:

The bug you encountered is actually related to installing the app in Android Studio, so this option helps you solve the crash issue. You can continue using it.

°°°

dji-dev commented 22 hours ago

Agent comment from yating.liao in Zendesk ticket #109804:

The bug you encountered is actually related to installing the app in Android Studio, so this option helps you solve the crash issue. You can continue using it.

°°°