App crashed when instantiate a QMediaPlayer object in android with qt5.9.2
APP crashed when I add "QT+=multimedia" in .pro file,"#include <QMediaPlayer>" in .h file,and "QMediaPlayer *player=new QMediaPlayer(this);" in cpp file.
Can anyone help me?
I notice that Qt's documentation for QMediaPlayer construct it without any arguments - perhaps it has problems with whatever you set as its parent. So, I'd try just: player = new QMediaPlayer;
You should also consider updating to the latest version of the 5.9 series if not Qt 5.10.