Dronelink App crashing or not connecting on Android

Hakon Lislebo

Hello, 

I have installed the android app using the direct download apk install. However the app crashes several times and when it starts it is not able to connect to drone. This is repeated on Samsung S7 and S10 phones today.

I managed to log in and find my flight plans. It also pops up as an app to use when USB is plugged into the phone from the controller. Litchi and DJI GO 4 works. 

Any ideas? What can I do to provide more debug info?

0

Comments

31 comments

  • Comment author
    Jim McAndrew Dronelink Staff

    Have you tried the 32bit version?

    https://support.dronelink.com/hc/en-us/articles/360033770833-Why-does-the-Android-app-crash-on-launch-

    0
  • Comment author
    Hakon Lislebo

    I have a Samsung S10 which is 64bit. Tried on S7 and brand new S10.

    0
  • Comment author
    Jim McAndrew Dronelink Staff

    We just recently updated the APKs behind the download links, so it is possible you are stuck on one of the old versions. Can you try deleting and reinstalling?

    0
  • Comment author
    Hakon Lislebo

    Thanks, that did the trick! It now connects. First flight test tomorrow.

    0
  • Comment author
    Hakon Lislebo
    • Edited

    Unfortunately this was short lived. After one first time connect to drone and seeing live video I am back to app crash on connect. DJI app works. So first time after reinstall was ok, but the following app starts after USB connect and app select results in app crash.

    Hakon

    0
  • Comment author
    Jim McAndrew Dronelink Staff

    This is on the S10 with the 64bit APK?

    0
  • Comment author
    Hakon Lislebo

    Yes that is correct. Brand new and freshly set up phone. I will try some more to see if I can find out more. Is there any logs etc. That could be of any use?

    0
  • Comment author
    Jim McAndrew Dronelink Staff

    The debug log from the device would be fantastic, but it's a pretty involved process.

    0
  • Comment author
    Hakon Lislebo

    I can do that.

    0
  • Comment author
    Jim McAndrew Dronelink Staff

    That would be great. Just make sure to cause the crash right before you attempt to extract the log file.

    0
  • Comment author
    Hakon Lislebo

    Ok

    0
  • Comment author
    Hakon Lislebo

    Here we go Jim: 

    Link to debug file:

    https://drive.google.com/open?id=1Cx1hWXFmMGIkcB9x1lquWzrVk3gC3un7

    Process: com.dronelink.dronelink, PID: 8127

    ava.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.dronelink.dronelink/dji.sdk.sdkmanager.DJIAoaControllerActivity}: java.lang.ClassNotFoundException: Didn't find class "dji.sdk.sdkmanager.DJIAoaControllerActivity" on path: DexPathList[[zip file "/system/framework/com.android.future.usb.accessory.jar", zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.dronelink.dronelink-plpg56Ty5dGyo6V_c-MwdQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.dronelink.dronelink-plpg56Ty5dGyo6V_c-MwdQ==/lib/arm64, /data/app/com.dronelink.dronelink-plpg56Ty5dGyo6V_c-MwdQ==/base.apk!/lib/arm64-v8a, /system/lib64]]

    Caused by: java.lang.ClassNotFoundException: Didn't find class "dji.sdk.sdkmanager.DJIAoaControllerActivity" on path: DexPathList[[zip file "/system/framework/com.android.future.usb.accessory.jar", zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.dronelink.dronelink-plpg56Ty5dGyo6V_c-MwdQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.dronelink.dronelink-plpg56Ty5dGyo6V_c-MwdQ==/lib/arm64, /data/app/com.dronelink.dronelink-plpg56Ty5dGyo6V_c-MwdQ==/base.apk!/lib/arm64-v8a, /system/lib64]]

    0
  • Comment author
    Jim McAndrew Dronelink Staff

    Thank you - I believe we can fix this! Will create a test build you can try in a bit.

    0
  • Comment author
    Jim McAndrew Dronelink Staff

    Try this APK and let me know if it works!

    0
  • Comment author
    Hakon Lislebo
    • Edited

    I am impressed by your response time! Appreciate it. Unfortunately it did not work. I uninstalled, restarted installed from your link, opened the application and logged into dronelink account. I then close the app and attach the USB cable from the RC. Then on usb connect and app select it still crashes.

    0
  • Comment author
    Jim McAndrew Dronelink Staff

    Can you post the latest logs so we can see if there is a new issue?

    0
  • Comment author
    Hakon Lislebo

    Ok

    0
  • Comment author
    Hakon Lislebo

    08-04 14:31:30.867 30237 30237 E AndroidRuntime: FATAL EXCEPTION: main
    08-04 14:31:30.867 30237 30237 E AndroidRuntime: Process: com.dronelink.dronelink, PID: 30237
    08-04 14:31:30.867 30237 30237 E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.dronelink.dronelink/dji.sdk.sdkmanager.DJIAoaControllerActivity}: java.lang.ClassNotFoundException: Didn't find class "dji.sdk.sdkmanager.DJIAoaControllerActivity" on path: DexPathList[[zip file "/system/framework/com.android.future.usb.accessory.jar", zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.dronelink.dronelink-klPqfGOptymuCwAs7wP1gQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.dronelink.dronelink-klPqfGOptymuCwAs7wP1gQ==/lib/arm64, /data/app/com.dronelink.dronelink-klPqfGOptymuCwAs7wP1gQ==/base.apk!/lib/arm64-v8a, /system/lib64]]
    08-04 14:31:30.867 30237 30237 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3019)
    08-04 14:31:30.867 30237 30237 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3256)
    08-04 14:31:30.867 30237 30237 E AndroidRuntime: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
    08-04 14:31:30.867 30237 30237 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
    08-04 14:31:30.867 30237 30237 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
    08-04 14:31:30.867 30237 30237 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1947)
    08-04 14:31:30.867 30237 30237 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
    08-04 14:31:30.867 30237 30237 E AndroidRuntime: at android.os.Looper.loop(Looper.java:214)
    08-04 14:31:30.867 30237 30237 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7037)
    08-04 14:31:30.867 30237 30237 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
    08-04 14:31:30.867 30237 30237 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
    08-04 14:31:30.867 30237 30237 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)
    08-04 14:31:30.867 30237 30237 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "dji.sdk.sdkmanager.DJIAoaControllerActivity" on path: DexPathList[[zip file "/system/framework/com.android.future.usb.accessory.jar", zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.dronelink.dronelink-klPqfGOptymuCwAs7wP1gQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.dronelink.dronelink-klPqfGOptymuCwAs7wP1gQ==/lib/arm64, /data/app/com.dronelink.dronelink-klPqfGOptymuCwAs7wP1gQ==/base.apk!/lib/arm64-v8a, /system/lib64]]
    08-04 14:31:30.867 30237 30237 E AndroidRuntime: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
    08-04 14:31:30.867 30237 30237 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
    08-04 14:31:30.867 30237 30237 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
    08-04 14:31:30.867 30237 30237 E AndroidRuntime: at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:69)
    08-04 14:31:30.867 30237 30237 E AndroidRuntime: at android.app.Instrumentation.newActivity(Instrumentation.java:1215)
    08-04 14:31:30.867 30237 30237 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3007)

    0
  • Comment author
    Jim McAndrew Dronelink Staff

    Ugh, same issue. This may take a few days to diagnose. Do you have an iOS devices you can use in the meantime? Thanks for your assistance and patience!

    0
  • Comment author
    Hakon Lislebo

    The complete log is here from apk v8a:

    https://drive.google.com/open?id=15QnyfBZn8d5g0U9PwKjQV8oEdohCBpvV

     

     

    0
  • Comment author
    Hakon Lislebo

    No, but I can test with another android tablet as well. Happy to help! Good luck tracing down the bug!

    0
  • Comment author
    Hakon Lislebo

    Tested today with Samsung Galaxy Tablet . App crashed on first startup. Installed from website menu native app.

    0
  • Comment author
    Jim McAndrew Dronelink Staff

    This sounds like the issue discussed here (need to use the 32bit version). Granted, the issues are similar in that they both result in crashes, but it's a question of when the crash happens. Still investigating the first issue.

    0
  • Comment author
    Hakon Lislebo

    Ahh.. yes might be the case. It was different since it crashed on startup. I will have a second go on that one.

    BTW - I have no hurry so take your time. I was intrigued by your automation approach and the ability to command camera as well so I wanted to support you. I use Litchi + Virtual Litchi Mission in the meantime. 

    0
  • Comment author
    Jim McAndrew Dronelink Staff
    • Edited

    Does this APK work on the original tablet having issues? (do uninstall then reinstall)

    0
  • Comment author
    Hakon Lislebo
    • Edited

    Hello Jim,
    Sorry for the delayed respons. I have been on a trip with no internet coverage , flying drone among other things.

    Back on topic - yes, this apk does work. First time launch after connecting usb and app select went well. Second connect does not start the dronelink app when selected on usb connect. However when started manually the app launch correctly and I can see the live view from the Mavic 2. Thanks! I will try a flight later and also see if I can see something in the log regarding the app not launching on USB connect. Keep up the good work. Really like the interpolated transitions in both drone elevation and camera angle. Håkon

    0
  • Comment author
    Hakon Lislebo

    I have now successfully flown a mission.

    0
  • Comment author
    Jim McAndrew Dronelink Staff

    Great, how did it go?

    0
  • Comment author
    Hakon Lislebo

    Exactly as planned and previewed. No spectacular mission though. A path with poi's and markers for speed and altitude.
    I tried to pause the flight with the rc controller pause button, but it did not react. Is that due to the flight controller running on the device? Also I missed an indication on the marker icon on the path to say what type they were - altitude vs speed etc. It gets a little messy visually when planning.
    I see that you already have implemented option for marker placement. Nearest coordinate vs distance from start. Great! Hakon

    0
  • Comment author
    Jim McAndrew Dronelink Staff

    Yes, the flight controller is running on the device, but we could map the hardware pause button to do the same thing as the software (onscreen) pause button.

    The markers are a little tricky because you can modify multiple things (altitude, speed, etc) in a single marker. I think the best we could do would be to be to put icons above the marker showing all the things that are configured inside the marker, but that would clutter up the screen even more. For now you can mouse-over it to see a tooltip with the contents of the marker.

    0

Please sign in to leave a comment.