QtQuick UI doesn't work in android device [SOLVED]



  • I've develop a qml UI, on pc it works but if I build the project for an android device I get these errors from application output:
    @W/Qt (14394): assets:/qml/audioplayerPRJ/qmlcontrols/Shared_Components/Image_ButtonEffected.qml:15 ((null)): assets:/qml/audioplayerPRJ/qmlcontrols/Shared_Components/Image_ButtonEffected.qml:15:5: QML Image: Invalid image data: assets:/qml/audioplayerPRJ/qmlcontrols/Shared_Components/img/Button_effect.svg
    W/Qt (14394): assets:/qml/audioplayerPRJ/qmlcontrols/Main_Components/Button_Repeat.qml:18 ((null)): assets:/qml/audioplayerPRJ/qmlcontrols/Main_Components/Button_Repeat.qml:18:5: QML Image: Invalid image data: assets:/qml/audioplayerPRJ/qmlcontrols/Main_Components/img/repeat.svg
    W/Qt (14394): assets:/qml/audioplayerPRJ/qmlcontrols/Shared_Components/Image_ButtonEffected.qml:15 ((null)): assets:/qml/audioplayerPRJ/qmlcontrols/Shared_Components/Image_ButtonEffected.qml:15:5: QML Image: Invalid image data: assets:/qml/audioplayerPRJ/qmlcontrols/Shared_Components/img/Button_effect.svg
    W/Qt (14394): assets:/qml/audioplayerPRJ/qmlcontrols/Main_Components/Button_Random.qml:18 ((null)): assets:/qml/audioplayerPRJ/qmlcontrols/Main_Components/Button_Random.qml:18:5: QML Image: Invalid image data: assets:/qml/audioplayerPRJ/qmlcontrols/Main_Components/img/random.svg
    W/Qt (14394): assets:/qml/audioplayerPRJ/qmlcontrols/Main_Components/VUmeter_band.qml:8 ((null)): assets:/qml/audioplayerPRJ/qmlcontrols/Main_Components/VUmeter_band.qml:8:5: QML Image: Invalid image data: assets:/qml/audioplayerPRJ/qmlcontrols/Main_Components/img/vuMeterBand.svg
    W/Qt (14394): assets:/qml/audioplayerPRJ/qmlcontrols/Main_Components/VUmeter_band.qml:8 ((null)): assets:/qml/audioplayerPRJ/qmlcontrols/Main_Components/VUmeter_band.qml:8:5: QML Image: Invalid image data: assets:/qml/audioplayerPRJ/qmlcontrols/Main_Components/img/vuMeterBand.svg
    W/Qt (14394): assets:/qml/audioplayerPRJ/qmlcontrols/Main_Components/VUmeter_band.qml:8 ((null)): assets:/qml/audioplayerPRJ/qmlcontrols/Main_Components/VUmeter_band.qml:8:5: QML Image: Invalid image data: assets:/qml/audioplayerPRJ/qmlcontrols/Main_Components/img/vuMeterBand.svg
    W/Qt (14394): assets:/qml/audioplayerPRJ/qmlcontrols/Main_Components/VUmeter_band.qml:8 ((null)): assets:/qml/audioplayerPRJ/qmlcontrols/Main_Components/VUmeter_band.qml:8:5: QML Image: Invalid image data: assets:/qml/audioplayerPRJ/qmlcontrols/Main_Components/img/vuMeterBand.svg
    W/Qt (14394): assets:/qml/audioplayerPRJ/qmlcontrols/Main_Components/VUmeter_band.qml:8 ((null)): assets:/qml/audioplayerPRJ/qmlcontrols/Main_Components/VUmeter_band.qml:8:5: QML Image: Invalid image data: assets:/qml/audioplayerPRJ/qmlcontrols/Main_Components/img/vuMeterBand.svg
    W/Qt (14394): assets:/qml/audioplayerPRJ/qmlcontrols/Main_Components/VUmeter_band.qml:8 ((null)): assets:/qml/audioplayerPRJ/qmlcontrols/Main_Components/VUmeter_band.qml:8:5: QML Image: Invalid image data: assets:/qml/audioplayerPRJ/qmlcontrols/Main_Components/img/vuMeterBand.svg
    W/Qt (14394): assets:/qml/audioplayerPRJ/qmlcontrols/Main_Components/VUmeter_band.qml:8 ((null)): assets:/qml/audioplayerPRJ/qmlcontrols/Main_Components/VUmeter_band.qml:8:5: QML Image: Invalid image data: assets:/qml/audioplayerPRJ/qmlcontrols/Main_Components/img/vuMeterBand.svg

    etc etc (similar errors)@

    maybe .svg files are not supported?
    Help me
    Thanks



  • probably you need to add svg to pro file

    i had the same error but this helps
    @QT += xml svg
    QTPLUGIN += qsvg@

    and will be better to remove old build dir



  • Thanks very much it's work...


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.