Qt AndroidExtras - error import androidx in java unit

I am trying to use Qt 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 (other imports compile successfully):

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?


Ответы (0 шт):