[Development] How to use ANDROID_EXTRA_PLUGINS property in qmake projects

Denis Shienkov denis.shienkov at gmail.com
Fri Jan 19 11:15:13 CET 2018


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



More information about the Development mailing list