Unsupported image format in android Qt5.15.2
-
wrote on 5 Jun 2022, 04:06 last edited by
Hi, hope your doing fine.
I have a problem with my application, while it runs with no problem on windows using Qt5.15.2 Mingw kit, it's not running properly on android and can't load svg files on Clang Multi abi.qrc:/qml/General/Icon.qml:29:5: QML Image: Error decoding: qrc:/resources/Images/General/meca_white_24dp.svg: Unsupported image format
-
wrote on 5 Jun 2022, 20:23 last edited by
Adding widgets and svg to qmake file fixed it for me.
QT += quick svg widgets
-
Hi,
Looks like you do not have the SVG module deployed with your Androïd application.
-
wrote on 5 Jun 2022, 20:20 last edited by
After taking a closer look at logs, i get this:
-- Skipping D:/Qt/Qt5.15.2/5.15.2/android/plugins/iconengines/libplugins_iconengines_qsvgicon_arm64-v8a.so. It has unmet dependencies: lib/libQt5Svg_arm64-v8a.so,lib/libQt5Widgets_arm64-v8a.so. -- Skipping D:/Qt/Qt5.15.2/5.15.2/android/plugins/imageformats/libplugins_imageformats_qsvg_arm64-v8a.so. It has unmet dependencies: lib/libQt5Svg_arm64-v8a.so,lib/libQt5Widgets_arm64-v8a.so.
-
wrote on 5 Jun 2022, 20:23 last edited by
Adding widgets and svg to qmake file fixed it for me.
QT += quick svg widgets
1/4