Hi,
I solved the timeout error by changing the start option to “cold boot” on Android Device Settings.
Now I get errors on QT Creator:
I example.Librar: Late-enabling -Xcheck:jni
E example.Librar: Unknown bits set in runtime_flags: 0x8000
W example.Librar: Unexpected CPU variant for X86 using defaults: x86
D libEGL : Emulator has host GPU support, qemu.gles is set to 1.
W libc : Unable to set property “qemu.gles” to “1”: connection failed; errno=13 (Permission denied)
W RenderThread: type=1400 audit(0.0:40): avc: denied { write } for name=”property_service” dev=”tmpfs” ino=777 scontext=u:r:untrusted_app:s0:c135,c256,c512,c768 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0
D libEGL : loaded /vendor/lib/egl/libEGL_emulation.so
D libEGL : loaded /vendor/lib/egl/libGLESv1_CM_emulation.so
D libEGL : loaded /vendor/lib/egl/libGLESv2_emulation.so
W System : ClassLoader referenced unknown path:
D Qt JAVA : Class org.qtproject.qt.android.multimedia.QtAudioDeviceManager does not implement setActivity method
I QtCore : Start
I Qt : qt started
D HostConnection: HostConnection::get() New Host Connection established 0xdbad7c80, tid 5694
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_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_sync_buffer_data 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…
D eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D EGL_emulation: eglCreateContext: 0xe7149da0: maj 3 min 0 rcv 3
D EGL_emulation: eglMakeCurrent: 0xe7149da0: ver 3 0 (tinfo 0xdbaf9980)
W Gralloc3: mapper 3.x is not supported
D HostConnection: createUnique: call
D HostConnection: HostConnection::get() New Host Connection established 0xdbad9670, tid 5694
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_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_sync_buffer_data 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
D eglCodecCommon: allocate: Ask for block of size 0x1000
D eglCodecCommon: allocate: ioctl allocate returned offset 0x3ffff6000 size 0x2000
D EGL_emulation: eglMakeCurrent: 0xe7149da0: ver 3 0 (tinfo 0xdbaf9980)
D eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 1 0
W libLibrary_x86.so: QQmlApplicationEngine failed to load component
W libLibrary_x86.so: qrc:/main.qml:10:1: module “Felgo” is not installed
W libLibrary_x86.so: exit app 0
D EGL_emulation: eglMakeCurrent: 0xe7149da0: ver 3 0 (tinfo 0xdbaf9980)
19:06:32:
“org.qtproject.example.Library” died.
And Android Studio Logcat logs are the same.
And my .pro file is below:
QT += quick
CONFIG += \
c++11 \
felgo
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
# Project identifier and version
# More information: https://felgo.com/doc/felgo-publishing/#project-configuration
PRODUCT_IDENTIFIER = org.qtproject.example.Library
PRODUCT_VERSION_NAME = 1.0.0
PRODUCT_VERSION_CODE = 1
# Optionally set a license key that is used instead of the license key from
# main.qml file (App::licenseKey for your app or GameWindow::licenseKey for your game)
# Only used for local builds and Felgo Cloud Builds (https://felgo.com/cloud-builds)
# Not used if using Felgo Live
PRODUCT_LICENSE_KEY = ""
SOURCES += \
main.cpp
FELGO_PLUGINS += admob
RESOURCES += qml.qrc
TRANSLATIONS += \
Library_tr_TR.ts
CONFIG += lrelease
CONFIG += embed_translations
# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =
# Additional import path used to resolve QML modules just for Qt Quick Designer
QML_DESIGNER_IMPORT_PATH =
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
DISTFILES += \
android/AndroidManifest.xml \
android/build.gradle \
android/gradle.properties \
android/gradle/wrapper/gradle-wrapper.jar \
android/gradle/wrapper/gradle-wrapper.properties \
android/gradlew \
android/gradlew.bat \
android/res/values/libs.xml
contains(ANDROID_TARGET_ARCH,arm64-v8a) {
ANDROID_PACKAGE_SOURCE_DIR = \
$$PWD/android
}
contains(ANDROID_TARGET_ARCH,x86) {
ANDROID_PACKAGE_SOURCE_DIR = \
$$PWD/android
}