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 Updated to NodeBB v4.3 + New Features

AndroidExtras, import error

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 3 Posters 329 Views 1 Watching
  • 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 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 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.HilkJ 1 Reply Last reply
      0
      • V VicDm

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

        J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on 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
        0
        • J.HilkJ J.Hilk

          @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 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