# QGC App crashes on Real Device (Android)

**URL:** <https://discuss.px4.io/t/qgc-app-crashes-on-real-device-android/36146>\
**Category:** Development\
**Created:** [January 4, 2024, 4:29pm UTC](https://discuss.px4.io/t/qgc-app-crashes-on-real-device-android/36146 "2024-01-04T16:29:39Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![JawadAli](https://discuss.px4.io/user_avatar/discuss.px4.io/jawadali/32/14956_2.png) [@JawadAli](https://discuss.px4.io/u/JawadAli)\
**Post date:** [January 4, 2024, 4:29pm UTC](https://discuss.px4.io/t/qgc-app-crashes-on-real-device-android/36146/1 "2024-01-04T16:29:39Z")

</div>

I have managed to successfully build the app version “Stable\_V4.3” on android. But it crashes with this error in the Application Output:

 ![Screenshot 2024-01-04 212738](https://discuss.px4.io/uploads/default/original/2X/8/82ddf7184200d59eee8edd567c452fd76033006f.png)

Another thing is that the exact same build runs successfully on emulator but crashes with the above error on mobile (Arm architectures). (Both Release & Debug)

Help Guyz!

---

<div class="post-metadata">

**Author:** ![youssef\_essam](https://discuss.px4.io/user_avatar/discuss.px4.io/youssef_essam/32/15249_2.png) [@youssef\_essam](https://discuss.px4.io/u/youssef_essam)\
**Post date:** [February 16, 2024, 7:16am UTC](https://discuss.px4.io/t/qgc-app-crashes-on-real-device-android/36146/2 "2024-02-16T07:16:07Z")

</div>

Hi jawad, i am having the exact same problem. Have you found a solution?

---

<div class="post-metadata">

**Author:** ![JawadAli](https://discuss.px4.io/user_avatar/discuss.px4.io/jawadali/32/14956_2.png) [@JawadAli](https://discuss.px4.io/u/JawadAli)\
**Post date:** [February 16, 2024, 7:55am UTC](https://discuss.px4.io/t/qgc-app-crashes-on-real-device-android/36146/3 "2024-02-16T07:55:29Z")

</div>

Hi @youssef_essam

Yes I was able to solve the problem.

There were some files missing in the ANDROID \_SOURCE… directory.

I just tried to build on MacOS, and the directories contents were different. And it worked.

Either they updated the repository, or it was the OS.

I used Stable\_V4.3.

Let me know if you need the directory, I’ll attach it.

---

<div class="post-metadata">

**Author:** ![youssef\_essam](https://discuss.px4.io/user_avatar/discuss.px4.io/youssef_essam/32/15249_2.png) [@youssef\_essam](https://discuss.px4.io/u/youssef_essam)\
**Post date:** [February 16, 2024, 9:05am UTC](https://discuss.px4.io/t/qgc-app-crashes-on-real-device-android/36146/4 "2024-02-16T09:05:04Z")

</div>

Can you attach the directory? i have manipulated the androidmanifest.xml file, and moved it with the RES folder to the ANDROID\_PACKAGE\_SOURCE\_DIR directory.  
I am also wondering if it’s because my device’s android version is 13 (API level 33).

---

<div class="post-metadata">

**Author:** ![JawadAli](https://discuss.px4.io/user_avatar/discuss.px4.io/jawadali/32/14956_2.png) [@JawadAli](https://discuss.px4.io/u/JawadAli)\
**Post date:** [February 16, 2024, 3:49pm UTC](https://discuss.px4.io/t/qgc-app-crashes-on-real-device-android/36146/5 "2024-02-16T15:49:14Z")

</div>

> **[ANDROID\_PACKAGE\_SOURCE\_DIR.zip](https://drive.google.com/file/d/1ZFhTABj_vvV0d_SD2w4intBdFb3Byj0X/view?usp=sharing)**
>
> Google Drive file.

Just replace this one with your existing directory. You might have to modify API Levels in Android\_Manifest.xml file.

---

<div class="post-metadata">

**Author:** ![youssef\_essam](https://discuss.px4.io/user_avatar/discuss.px4.io/youssef_essam/32/15249_2.png) [@youssef\_essam](https://discuss.px4.io/u/youssef_essam)\
**Post date:** [February 21, 2024, 6:49pm UTC](https://discuss.px4.io/t/qgc-app-crashes-on-real-device-android/36146/6 "2024-02-21T18:49:29Z")

</div>

Thank you so much Jawad, I will try placing it in my build directory tomorrow and get back to you! Appreciate it alot.

---

<div class="post-metadata">

**Author:** ![devgel204](https://discuss.px4.io/letter_avatar_proxy/v4/letter/d/a87d85/32.png) [@devgel204](https://discuss.px4.io/u/devgel204)\
**Post date:** [February 22, 2024, 9:00am UTC](https://discuss.px4.io/t/qgc-app-crashes-on-real-device-android/36146/7 "2024-02-22T09:00:27Z")

</div>

Hi Jawad! I’m struggling to build the android version. Which version of QT are you using? And where i suppose to paste the “ANDROID\_PACKAGE\_SOURCE\_DIR”, inside my local repo of the qgrundcontrol i download from github?

Thanks!

---

<div class="post-metadata">

**Author:** ![JawadAli](https://discuss.px4.io/user_avatar/discuss.px4.io/jawadali/32/14956_2.png) [@JawadAli](https://discuss.px4.io/u/JawadAli)\
**Post date:** [February 22, 2024, 9:25am UTC](https://discuss.px4.io/t/qgc-app-crashes-on-real-device-android/36146/8 "2024-02-22T09:25:23Z")

</div>

Hi,

I was using version 5.15.2.

When you execute the build command for Android application the first time, it will fail.

But a directory for that build will be created on the same level as your project.

Paste the Android Source directory in that build folder and run again.

Hopefully it will build and run successfully.

---

<div class="post-metadata">

**Author:** ![devgel204](https://discuss.px4.io/letter_avatar_proxy/v4/letter/d/a87d85/32.png) [@devgel204](https://discuss.px4.io/u/devgel204)\
**Post date:** [February 23, 2024, 9:54am UTC](https://discuss.px4.io/t/qgc-app-crashes-on-real-device-android/36146/9 "2024-02-23T09:54:14Z")

</div>

It worked, thanks a lot!

---

<div class="post-metadata">

**Author:** ![Edanaz\_Abdullahoglu](https://discuss.px4.io/user_avatar/discuss.px4.io/edanaz_abdullahoglu/32/15951_2.png) [@Edanaz\_Abdullahoglu](https://discuss.px4.io/u/Edanaz_Abdullahoglu)\
**Post date:** [August 5, 2024, 8:10am UTC](https://discuss.px4.io/t/qgc-app-crashes-on-real-device-android/36146/10 "2024-08-05T08:10:55Z")

</div>

Hello, I am also compiling with qt 5.12.5 and working with ndk 21.3 and jdk 11 and sdk 8. When I run the app after the build process, it constantly crashes. I have reviewed your comments on this subject, but do I need to configure this file ANDROID\_PACKAGE\_SOURCE\_DIR for my own project and which build file should I paste it into? Can you help me with this?
