I am trying to build QGC for android but the build process haas been failing for a while.
I wanted to ask about the specific versions for tools like Qt, SDK, NDK and all other necessities that could successfully build QGC for android. I am working on Windows 11.
Would really appreciate any help for a successful build.
Android Studio is helpful for its SDK Manager and the virtual device manager. I am not that experienced in android development so this is as far my knowledge goes.
Try changing them to something along the lines of this and also copy the res folder( and the updated xml file) to the ANDROID_packgage dir that I told to create. Hope it helps
If I comment out some lines related to splash screen in AndroidManifest.xml file, the application builds on the device (emulator and phone) but doesn’t run, keeps crashing.
I would suggest you not to comment out anything. Try changing the icons to something else! and copying the “res” folder to Android packgage dir folder which you would have created. After I did this it built successfully!
Thanks a lot @Deathstroke69. I am able to successfully build and run the app on emulator. But it is still crashing on my phone. After tapping to open it a few times, an error appears saying “QGC failed to start several times. Restore it by clearing its history?”
My build completes with some warnings and sometimes a few build errors, although no explicit mention of error in the logs and warnings like “QML imports” and “Mappings”.
Does yours show similar behavior?
Also did you build a debug version or release for actual device?
Release fails due to some errors related to adb saying “no certifications”.
Application output defines the cause as ClassNotFoundException.
Or are you aware of this?
Hidden / less known feature in QGC:
…there is this very little known feature whereby whilst video streaming you can double click (or fast double tap on touch-screens) any area other than those showing instruments/icons and you’ll get a full screen view.
→ Repeat to go back to normal view.
Very handy on those smaller screens like on the MK15.