Solved Android: Your application encountered a fatal error and cannot continue
-
Hello,
I submitted an app in .aab format to play store. On downloading the app, It works fine on Android 5,6,7,8 versions. But, it throws this error on Android 9 and Android 10 version. - "your application encountered a fatal error and cannot continue" on opening the app.
But, if I deploy the same app via USB to a device running Android 9 or Android 10, it works fine. Only on downloading from play store throws the above error.
Details:
Qt Version 5.14.1
Android SDK version 26
Android NDK version r20b
android:minSdkVersion="21"
android:targetSdkVersion="29"Any suggestions on how to proceed further?
Thanks in advance
-
I'd try installing from device's file system and then with a web browser from a web server - that would at least make debugging faster... After that you can try to locate where it crashes and, after that, why.
-
Hi @nithinsuresh,
This is a bug in Qt with aab, it was repoted at https://bugreports.qt.io/browse/QTBUG-80766
For workaround solution you can build apk instead aab and upload all in one release, or addandroid.bundle.enableUncompressedNativeLibs = false
inside gradle.properties -
Thank you for your response @mvuori and @Quang-Phu.
I tried @Quang-Phu solution. It is working perfectly fine. When i download the app from play store, i am not seeing any error. It launches normally.
Thank you for your help @Quang-Phu