[Interest] Android Packagin

Igor Mironchik igor.mironchik at gmail.com
Mon Feb 26 20:28:44 CET 2018


Hello,

Could anybody explain me what's wrong in this simple application?

It can't start on Android device.

Thank you.

import QtQuick.Controls 2.2
import QtQuick 2.7

ApplicationWindow {
     id: appWindow
     visible: true
     width: 400
     height: 600

     Text {
         anchors.centerIn: parent
         text: qsTr( "Qt" )
         font.pixelSize: 50
     }
}


#include <QGuiApplication>
#include <QQmlApplicationEngine>


int main( int argc, char ** argv )
{
     QGuiApplication app( argc, argv );

     QQmlApplicationEngine engine;
     engine.load( QUrl( "qrc:/qml/main.qml" ) );

     if( engine.rootObjects().isEmpty() )
         return -1;

     return app.exec();
}



TEMPLATE = app
TARGET = Test.Mobile
QT += qml quickcontrols2 quick
CONFIG += c++14

SOURCES = main.cpp

RESOURCES = resources.qrc

DISTFILES += qml/main.qml

ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android

OTHER_FILES += android/AndroidManifest.xml


I can't deploy to Android anymore. And I don't have any idea.




More information about the Interest mailing list