Qt6.5.0: Android: Can't create main activity
Unsolved
Qt 6
-
While I was able to port my Qt5.15 app for Android to Qt6.5.0 I can not start it. The code compiled and I get an executable which is deployed to the devive. It starts and it immediately prints out the following error:
I libc : SetHeapTaggingLevel: tag level set to 0 I project.theosys: Late-enabling -Xcheck:jni D CompatibilityChangeReporter: Compat change id reported: 171979766; UID 10163; state: DISABLED W ziparchive: Unable to open '/data/app/~~069OW1iBqJrpEh0RC5_Yrg==/org.qtproject.theosys-PAgIfB0yyAgVOunaVlPQNw==/base.dm': No such file or directory W ziparchive: Unable to open '/data/app/~~069OW1iBqJrpEh0RC5_Yrg==/org.qtproject.theosys-PAgIfB0yyAgVOunaVlPQNw==/base.dm': No such file or directory D nativeloader: Configuring classloader-namespace for other apk /data/app/~~069OW1iBqJrpEh0RC5_Yrg==/org.qtproject.theosys-PAgIfB0yyAgVOunaVlPQNw==/base.apk. target_sdk_version=30, uses_libraries=, library_path=/data/app/~~069OW1iBqJrpEh0RC5_Yrg==/org.qtproject.theosys-PAgIfB0yyAgVOunaVlPQNw==/lib/arm64:/data/app/~~069OW1iBqJrpEh0RC5_Yrg==/org.qtproject.theosys-PAgIfB0yyAgVOunaVlPQNw==/base.apk!/lib/arm64-v8a, permitted_path=/data:/mnt/expand:/data/user/0/org.qtproject.theosys V GraphicsEnvironment: ANGLE Developer option for 'org.qtproject.theosys' set to: 'default' V GraphicsEnvironment: ANGLE GameManagerService for org.qtproject.theosys: false V GraphicsEnvironment: Neither updatable production driver nor prerelease driver is supported. D NetworkSecurityConfig: No Network Security Config specified, using platform default D NetworkSecurityConfig: No Network Security Config specified, using platform default E project.theosys: Invalid ID 0x00000000. E Qt : Can't create main activity E Qt : android.content.res.Resources$NotFoundException: String resource ID #0x0 E Qt : at android.content.res.Resources.getText(Resources.java:453) E Qt : at android.content.res.Resources.getString(Resources.java:546) E Qt : at org.qtproject.qt.android.bindings.QtLoader.startApp(QtLoader.java:223) E Qt : at org.qtproject.qt.android.bindings.QtActivityLoader.onCreate(QtActivityLoader.java:114) E Qt : at org.qtproject.qt.android.bindings.QtActivity.onCreateHook(QtActivity.java:237) E Qt : at org.qtproject.qt.android.bindings.QtActivity.onCreate(QtActivity.java:257) E Qt : at android.app.Activity.performCreate(Activity.java:8305) E Qt : at android.app.Activity.performCreate(Activity.java:8284) E Qt : at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1417) E Qt : at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3626) E Qt : at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3782) E Qt : at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101) E Qt : at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) E Qt : at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) E Qt : at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2307) E Qt : at android.os.Handler.dispatchMessage(Handler.java:106) E Qt : at android.os.Looper.loopOnce(Looper.java:201) E Qt : at android.os.Looper.loop(Looper.java:288) E Qt : at android.app.ActivityThread.main(ActivityThread.java:7872) E Qt : at java.lang.reflect.Method.invoke(Native Method) E Qt : at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) E Qt : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936) D libEGL : loaded /vendor/lib64/egl/libEGL_emulation.so D libEGL : loaded /vendor/lib64/egl/libGLESv1_CM_emulation.so D libEGL : loaded /vendor/lib64/egl/libGLESv2_emulation.so D CompatibilityChangeReporter: Compat change id reported: 210923482; UID 10163; state: DISABLED D CompatibilityChangeReporter: Compat change id reported: 37756858; UID 10163; state: ENABLED D HostConnection: createUnique: call D HostConnection: HostConnection::get() New Host Connection established 0x71fce66290, tid 10089 D HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_vulkan_queue_submit_with_commands ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma ANDROID_EMU_hwc_multi_configs GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_3_0 W OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without... W OpenGLRenderer: Failed to initialize 101010-2 format, error = EGL_SUCCESS D EGL_emulation: eglCreateContext: 0x71fce682d0: maj 3 min 0 rcv 3 D EGL_emulation: eglMakeCurrent: 0x71fce682d0: ver 3 0 (tinfo 0x7413a38080) (first time) I Gralloc4: mapper 4.x is not supported D HostConnection: createUnique: call D HostConnection: HostConnection::get() New Host Connection established 0x71fce66e90, tid 10089 D goldfish-address-space: allocate: Ask for block of size 0x100 D goldfish-address-space: allocate: ioctl allocate returned offset 0x1f3ff8000 size 0x8000 W Gralloc4: allocator 4.x is not supported D HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_vulkan_queue_submit_with_commands ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma ANDROID_EMU_hwc_multi_configs GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_3_0 W Parcel : Expecting binder but got null! 10:11:12: "org.qtproject.theosys" died.
Does anybody know what I'm missing?
I know that this was (is?) a bug where something about QtQuick was missing. But it seems to be linked. Maybe something else is missing. If so, what? And is there a workaround?
BTW: I'm developping on a Mac mini with latest development kits.
A.T.
-
@TheoSys said in Qt6.5.0: Android: Can't create main activity:
Qt5.15 app for Android to Qt6.5.0
Exactly the same problem after moving app from Qt5.15 Qt6.5