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

Capacitor Error: cannot find symbol import android.support.v4.app.ActivityCompat #360

Open
damtaipu opened this issue Nov 9, 2021 · 2 comments

Comments

@damtaipu
Copy link

damtaipu commented Nov 9, 2021

The plugin is not buiding on the capacitor. pops error: cannot find symbol import android.support.v4.app.ActivityCompat.

Im usage Capacitor 3.0.2

@mattbob
Copy link

mattbob commented Feb 21, 2022

I'm running into this as well with the cordova qrscanner

  "dependencies": {
    "@capacitor/android": "^3.4.1",
    "@capacitor/cli": "^3.4.1",
    "@capacitor/core": "^3.4.1",
    "cordova-plugin-qrscanner": "^3.0.1",
    ...

@JanKoll
Copy link

JanKoll commented Mar 8, 2022

The problem is that this library is no longer supported. It should be fixed if you include the appropriate AndroidX library like here:

// import android.support.v4.app.ActivityCompat;
import androidx.core.app.ActivityCompat; // <- AndroidX library

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

3 participants