Nominate our 2022 Qt Champions!

Qt Android Extras installation

  • I am developing an app that need to access the image gallery of the OS in iOS and Android.

    I have seen that I must develop one way to Android using QAndroidJniObject Class and another way to iOS using the UIKit and UIImagePickerController from nativa iOS API.

    So I decided to start with Android and I am facing a problem. When I include in my .pro file the line QT += androidextras it returns my the following error:
    Project ERROR: Unknown module(s) in QT: androidextras

    Now I am trying to find out from where I can download it because the repositories at Qt site leads me to web pages that don't exist. How can I download that module?


  • Solved.
    I used a condition: android { QT += androidextras } in the .pro file