QT5.2 Android(安卓)App找不到插件qmlxmllistmodelplugin
16lz
2021-01-24
在QML文件中使用XmlListModel时,编译成桌面版时没有任何问题,但是编译并部署到Android模拟器时却报错:
module "QtQuick.XmlListModel" plugin "qmlxmllistmodelplugin" not found
官方给出的解释是:
Creator in 3.0 can't detect dependencies in the qml files. There's a tool in development to fix that and hopefully we can make use of that in the future.
官方给出的解决方法是:
In your case linking your application against xmlpatterns makes it work. Add QT+=xmlpatterns to the .pro file and ensure that it links again. (qmake doesn't link if you only change the .pro file.)
即在pro文件中加入 QT += xmlpatterns, 并且需要重新编译连接项目
官方:https://bugreports.qt-project.org/browse/QTCREATORBUG-11123?focusedCommentId=226309&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-226309
更多相关文章
- Android(安卓)手势 正则匹配图片
- Android(安卓)软键盘的监听(监听高度,是否显示)
- android 控件之checkbox自定义样式
- Android(安卓)通过adb shell am broadcast发送广播
- android中Bitmap对象怎么保存为文件?
- Android(安卓)xml 文件代码自动提示
- Android(安卓)Studio 中build.gradle文件的详细解析
- Android(安卓)AIDL详解
- Android(安卓)Studio的.gitignore以及gitignore无效的解决