I installed qt 5.15.2 a few hours ago using qt-unified-linux-x64-4.6.0-online.run on ubuntu 22.04. All packages are installed and configured using JDK 17, sdk and ndk 25.1, 22.1, 21.3(automatically installed when updated from device settings in qt) and I think it is okay. No error shows. But I have created a simple widget app and want to access the Android Intent. So I have added androidextras in . pro file and i get this error message "```
:-1: error: No platform plugin, neither libqtforandroid.so or libqtforandroidGL.so, included in package. Please include one.
I don't understand where is the problem. Here are my project details:
QT += core gui androidextras
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++17
You can make your code fail to compile if it uses deprecated APIs.
In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES +=
main.cpp
widget.cpp
HEADERS +=
widget.h
FORMS +=
widget.ui
Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
#ifndef WIDGET_H
#define WIDGET_H
#include <QWidget>
#include <QAndroidIntent>
QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE
class Widget : public QWidget
{
Q_OBJECT
public:
Widget(QWidget *parent = nullptr);
~Widget();
private:
Ui::Widget *ui;
};
#endif // WIDGET_H
I have checked and installed llvm like this:
$ llvm-config --version
14.0.0
Thanks for your time and help.