I have found a solution and have updated the bug, where I added
a source project with correct solution:

https://bugreports.qt.io/browse/QTBUG-65864

Maybe it will helps to anybody else.

PS: Needs to extend a doc about using of the ANDROID_EXTRA_PLUGINS anyway...

PS2: Also, the qmake copies this library twice to the android-build directory...

19.01.2018 13:15, Denis Shienkov пишет:
Hi all.

I have created a custom qt-positioning plugin, which just
every second provides a new fake position/coordinate.

This plugin work perfectly e.g. on Windows, but it does not
work on Android, as it does not loaded, because it wrongly
deployed to APK file.

I have read about the ANDROID_EXTRA_PLUGINS property:
http://doc.qt.io/qt-5/deployment-android.html. But there
are no any examples how to use this property (nor in examples,
not in google). It is unclear at all how to use this property.

I have tried different combinations, but it does not work at
all. I have tried to specify a different output paths to my
plugin (as a full paths, as a directory only and so on).

I have found only one similar issue on stackoverflow:
https://stackoverflow.com/questions/47061829/how-to-deploy-qt-imageformats-plugins-on-android

but from there it is unclear what I need to add to the
ANDROID_EXTRA_PLUGINS property (or a directory path or
a full path... a path to where?).

I have created a bug https://bugreports.qt.io/browse/QTBUG-65864
with an test project.

Whether someone has experience of creation of
a custom Qt plugins for Android?

BR,
Denis

_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to