android.support has been replaced by androidx - change required for (mandatory) API level 30
sebastiandiel opened this issue · 0 comments
sebastiandiel commented
Google demands API level 30 for PlayStore, at least for new apps. Trying to step up, I've found a problem with qzxing/examples/QZXingLive/android/src/org/ftylitak/qzxing/Utilities.java and its imports
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
because android.support.v4 is discontinued and replaced by androidx.
Build was not successful.
For me, just replacing the imports this way seems to help:
//import android.support.v4.app.ActivityCompat;
//import android.support.v4.content.ContextCompat;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
Now it builds.
I'm not sure about compatibility the other way, perhaps there should be a API version check (if possible).