Is console app supported on android?

  • Hi,
    I'm using Qt on mac with qt-opensource-mac-x64-android-5.3.1.dmg, I can compile and deploy qt examples to android device successfully.
    But when I create a console app with wizard, when I want to run it on device, I get

    No platform plugin, neither or, included in package. Please include one.
    Generating Android Package
    Input file: /Volumes/DATA/code/test_xcode/qt/build-qtapp-Android_for_armeabi_v7a_GCC_4_8_Qt_5_3_1-Debug/
    Output directory: /Volumes/DATA/code/test_xcode/qt/build-qtapp-Android_for_armeabi_v7a_GCC_4_8_Qt_5_3_1-Debug/android-build
    Application binary: /Volumes/DATA/code/test_xcode/qt/build-qtapp-Android_for_armeabi_v7a_GCC_4_8_Qt_5_3_1-Debug/
    Android build platform: android-19
    Install to device: 015d14fec11c1612
    When executing step 'Deploy to Android device'
    00:47:15: Elapsed time: 00:01.

    in Compile Output window.

    Can anyone give some advice? thank in advance.

  • Lifetime Qt Champion


    IIRC you need to add

    @QT += gui@

    to your pro file.

    It might look counter intuitive but currently the platform plugin containing all the low level stuff that is needed is there.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.