Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android.support has been replaced by androidx - change required for (mandatory) API level 30 #206

Open
sebastiandiel opened this issue Aug 10, 2021 · 0 comments

Comments

@sebastiandiel
Copy link

sebastiandiel commented Aug 10, 2021

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant