cordova-plugin-qrscanner icon indicating copy to clipboard operation
cordova-plugin-qrscanner copied to clipboard

import android.support.v4.app.ActivityCompat;

Open linlak opened this issue 4 years ago • 2 comments

Error on line 27 of QRScanner.java fixed with import androidx.core.app.ActivityCompat; but keeps it keeps changing every time I execute npx cap sync private boolean hasCamera() { if (this.cordova.getActivity().getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA)){ return true; } else { return false; } } use FEATURE_CAMERA_ANY

linlak avatar May 18 '20 14:05 linlak

@linlak any progress on this? I'm staring down the same issue.

TheCorbin avatar Jun 10 '20 21:06 TheCorbin

You can use jetify to convert to androidx, as below:

npm install --save-dev jetifier
npx jetify
npx cap sync

As a bonus set your postinstall script "postinstall": "jetifier" in package.json

SavageCore avatar Jun 30 '20 15:06 SavageCore