I’ve managed to get cloud builds to build and upload the build to the Google Play Console; it gets accepted and it seems fine.
However, when I install it on my phone it crashes as soon as it opens. Google Play Console also reports it crashing on several devices.
If I build the .apk in QtCreator and install it on my phone then it works fine. However, previously it was crashing until I imported my own QML modules with the following:
set(QML_IMPORT_PATH ${CMAKE_SOURCE_DIR}/qml/MyModule)
This is what the Google Play Console complains of:
backtrace:
#00 pc 0x000000000033c968 /data/app/~~hFavA0E3XLTbIxHQWc2oMA==/mycompany.myapp-5ifnpYUZGARdaElFowdNHQ==/lib/arm64/libQt6Qml_arm64-v8a.so (QQmlContext::engine() const) (BuildId: 874e4a9386749dd671a9b22f0e148cb949551b35)
#01 pc 0x00000000004f2558 /data/app/~~hFavA0E3XLTbIxHQWc2oMA==/mycompany.myapp-5ifnpYUZGARdaElFowdNHQ==/lib/arm64/libFelgo_arm64-v8a.so (FelgoApplication::objectCreatedHandler(QObject*, QUrl const&)+48) (BuildId: 6094b222fa05a8427e2816af5f18e0b5cd8143d9)
#02 pc 0x000000000036aa88 /data/app/~~hFavA0E3XLTbIxHQWc2oMA==/mycompany.myapp-5ifnpYUZGARdaElFowdNHQ==/lib/arm64/libQt6Core_arm64-v8a.so (BuildId: 7ca8235d7af9eecefb4d48ea518938f22ef20c3d)
#03 pc 0x0000000000324a78 /data/app/~~hFavA0E3XLTbIxHQWc2oMA==/mycompany.myapp-5ifnpYUZGARdaElFowdNHQ==/lib/arm64/libQt6Qml_arm64-v8a.so (QQmlApplicationEngine::objectCreated(QObject*, QUrl const&)+52) (BuildId: 874e4a9386749dd671a9b22f0e148cb949551b35)
#04 pc 0x0000000000324a20 /data/app/~~hFavA0E3XLTbIxHQWc2oMA==/mycompany.myapp-5ifnpYUZGARdaElFowdNHQ==/lib/arm64/libQt6Qml_arm64-v8a.so (QQmlApplicationEnginePrivate::finishLoad(QQmlComponent*)+444) (BuildId: 874e4a9386749dd671a9b22f0e148cb949551b35)
#05 pc 0x0000000000324834 /data/app/~~hFavA0E3XLTbIxHQWc2oMA==/mycompany.myapp-5ifnpYUZGARdaElFowdNHQ==/lib/arm64/libQt6Qml_arm64-v8a.so (QQmlApplicationEnginePrivate::startLoad(QUrl const&, QByteArray const&, bool)+508) (BuildId: 874e4a9386749dd671a9b22f0e148cb949551b35)
#06 pc 0x0000000000324b9c /data/app/~~hFavA0E3XLTbIxHQWc2oMA==/mycompany.myapp-5ifnpYUZGARdaElFowdNHQ==/lib/arm64/libQt6Qml_arm64-v8a.so (QQmlApplicationEngine::load(QUrl const&)+36) (BuildId: 874e4a9386749dd671a9b22f0e148cb949551b35)
#07 pc 0x0000000000003f8c /data/app/~~hFavA0E3XLTbIxHQWc2oMA==/mycompany.myapp-5ifnpYUZGARdaElFowdNHQ==/lib/arm64/libappmyapp_arm64-v8a.so (main+308) (BuildId: 193289ad9c1205ae7207e031496a15ac404ba7e7)
#08 pc 0x00000000000444a0 /data/app/~~hFavA0E3XLTbIxHQWc2oMA==/mycompany.myapp-5ifnpYUZGARdaElFowdNHQ==/lib/arm64/libplugins_platforms_qtforandroid_arm64-v8a.so (BuildId: baa36386b0f61706ebac77be6f53c855ad8bb47a)
#09 pc 0x0000000000222244 /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148)
#10 pc 0x0000000000218be8 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568)
#11 pc 0x0000000000284224 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+216)
#12 pc 0x00000000003e34ac /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+400)
#13 pc 0x00000000003decfc /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, true>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+1704)
#14 pc 0x0000000000757e00 /apex/com.android.art/lib64/libart.so (MterpInvokeStatic+1012)
#15 pc 0x0000000000203994 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static+20)
#16 pc 0x000000000011d3ec /data/app/~~hFavA0E3XLTbIxHQWc2oMA==/mycompany.myapp-5ifnpYUZGARdaElFowdNHQ==/base.apk (org.qtproject.qt.android.QtNative$7.run)
#17 pc 0x00000000003d6150 /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool)+304)
#18 pc 0x00000000003dd890 /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+204)
#19 pc 0x00000000003dece0 /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, true>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+1676)
#20 pc 0x000000000075338c /apex/com.android.art/lib64/libart.so (MterpInvokeInterface+2536)
#21 pc 0x0000000000203a14 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_interface+20)
#22 pc 0x000000000011f64e /data/app/~~hFavA0E3XLTbIxHQWc2oMA==/mycompany.myapp-5ifnpYUZGARdaElFowdNHQ==/base.apk (org.qtproject.qt.android.QtThread$1.run+146)
#23 pc 0x00000000003d6150 /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool)+304)
#24 pc 0x000000000073b6b8 /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+776)
#25 pc 0x0000000000222378 /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88)
#26 pc 0x00000000001bf17c /apex/com.android.art/javalib/arm64/boot.oat (java.lang.Thread.run+76)
#27 pc 0x0000000000218964 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548)
#28 pc 0x0000000000284208 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+188)
#29 pc 0x000000000061fb98 /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValues<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, jvalue const*)+460)
#30 pc 0x000000000066e75c /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1184)
#31 pc 0x00000000000b1690 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204)
#32 pc 0x00000000000510ac /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
Any ideas?