Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. AndroidExtras, import error
Forum Update on Monday, May 27th 2025

AndroidExtras, import error

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 3 Posters 322 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sz36
    wrote on 2 Oct 2021, 09:55 last edited by
    #1

    I am trying to use AndroidExtras. I found an Android example of the functionality need for me (on java) and want to transfer it to Qt.
    I get error on lines:

    import androidx.core.app.ActivityCompat;
    import androidx.core.hardware.fingerprint.FingerprintManagerCompat;
    
    error: package androidx.core.app does not exist import androidx.core.app.ActivityCompat;
    error: package androidx.core.hardware.fingerprint does not exist import androidx.core.hardware.fingerprint.FingerprintManagerCompat;
    

    This code in AndroidStudio builds without errors and works.
    Tried to set properties

    android.useAndroidX=true
    android.enableJetifier=true
    

    but it doesn't work.

    Why is this error occurring and how can I fix it?

    1 Reply Last reply
    1
    • V Offline
      V Offline
      VicDm
      wrote on 26 Mar 2025, 07:33 last edited by
      #2

      I'm facing the same issue years later, could you please provide me with the solution if possible? Thank You :)

      J 1 Reply Last reply 26 Mar 2025, 07:35
      0
      • V VicDm
        26 Mar 2025, 07:33

        I'm facing the same issue years later, could you please provide me with the solution if possible? Thank You :)

        J Offline
        J Offline
        J.Hilk
        Moderators
        wrote on 26 Mar 2025, 07:35 last edited by
        #3

        @VicDm you're probably using Qt6, that module no longer exists in Qt6.

        Functionality of was moved to other classes


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        V 1 Reply Last reply 26 Mar 2025, 07:45
        0
        • J J.Hilk
          26 Mar 2025, 07:35

          @VicDm you're probably using Qt6, that module no longer exists in Qt6.

          Functionality of was moved to other classes

          V Offline
          V Offline
          VicDm
          wrote on 26 Mar 2025, 07:45 last edited by VicDm
          #4

          @J-Hilk Sorry, I would say I have a similar* issue. I posted the issue I have yesterday and got no response yet. This looked similar to what I am facing. I cannot import anything from androidx. Here is the link to my post: androidx package does not exist error . I would appreciate some help. Thanks in advance :)

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved