Dronelink App crashing or not connecting on Android
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?
Comments
31 comments
Have you tried the 32bit version?
https://support.dronelink.com/hc/en-us/articles/360033770833-Why-does-the-Android-app-crash-on-launch-
I have a Samsung S10 which is 64bit. Tried on S7 and brand new S10.
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?
Thanks, that did the trick! It now connects. First flight test tomorrow.
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
This is on the S10 with the 64bit APK?
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?
The debug log from the device would be fantastic, but it's a pretty involved process.
I can do that.
That would be great. Just make sure to cause the crash right before you attempt to extract the log file.
Ok
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]]
Thank you - I believe we can fix this! Will create a test build you can try in a bit.
Try this APK and let me know if it works!
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.
Can you post the latest logs so we can see if there is a new issue?
Ok
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)
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!
The complete log is here from apk v8a:
https://drive.google.com/open?id=15QnyfBZn8d5g0U9PwKjQV8oEdohCBpvV
No, but I can test with another android tablet as well. Happy to help! Good luck tracing down the bug!
Tested today with Samsung Galaxy Tablet . App crashed on first startup. Installed from website menu native app.
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.
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.
Does this APK work on the original tablet having issues? (do uninstall then reinstall)
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
I have now successfully flown a mission.
Great, how did it go?
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
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.
Please sign in to leave a comment.