Rather than just a message, print the the actual error QSqlDatabase returns.
Then start your application with the QT_DEBUG_PLUGINS environment variable set to 1.
Last point, Qt for Android is a dynamic build so unless you built it yourself statically, there's no need to apply static plugin code.