Open linlak opened 4 years ago
@linlak any progress on this? I'm staring down the same issue.
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
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