Is this project supposed to work on Mini 2?
785 3 2023-5-11
Uploading and Loding Picture ...(0/1)
o(^-^)o
Andrea Manera
lvl.1

Italy
Offline

Good afternoon to everybody,
I am new to the world of drones, and through a university project I am starting to do development of applications for Android using the Mini 2 and consequently the SDK 4.16.1. I was able to set up the Android studio environment and to correctly build the sample code project and then to connect my smartphone and run the app to test it with my Mini 2. Until now no problem, but as a next task I was asked to test the project I link below (https://github.com/DJI-Mobile-SDK-Tutorials/Android-GSDemo-GoogleMap) to verify its operation, after importing the project on android studio (Flamingo 2022.2.1), and after setting the android gradle plugin version to 7.2.0, the gradle version to 7.3.3 and the gradle JDK to 11 I have no particular problems in the build phase, but trying to open the app on my smartphone (one Xiaomi Mi10T with android 12) it crashes instantly, Do you have any suggestions to solve?
Thank you so much!
2023-5-11
Use props
DAFlys
Captain
Flight distance : 312090263 ft
  • >>>
United Kingdom
Offline

Hi! You might be better off posting your question in the 'Developer' section of this forum.  That is way more active.    -   From https://developer.dji.com you can click Forum to access it or a direct link to it is - https://forum.dji.com/forum-139-1.html?from=developer
2023-5-11
Use props
No Original Thought
Second Officer
Flight distance : 1364209 ft
United Kingdom
Offline

You'll need to use a debug build variant and Android Studio's logcat to see what is causing the crash.

The stack trace should point to the code that is failing so you'll see whether it is in the project code or the SDK code.

If the problem is in the SDK code then the developer area of this forum may be able to help out, otherwise try developer fittings such as Stack Overflow (though be prepared to share a lot more detail about what you are seeing there as Stack Overflow can be a bit hostile if the users think you are asking them to do your work for you without you having put in any research effort yourself).
2023-5-11
Use props
DJI Gamora
Administrator

Offline

Hi, Andrea. Thank you for reaching out. For this concern, please contact our designated team via email at dev@dji.com for further consultation. Thank you for your kind understanding and support.
2023-5-12
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules