rodgomesc / vision-camera-face-detector

VisionCamera Frame Processor Plugin to detect faces using MLKit Vision Face Detector
MIT License
89 stars 65 forks source link

Fixed: Android Crash: 'AAPT: error: resource android:attr/lStar not found.' #40

Open Nestoro opened 1 year ago

Nestoro commented 1 year ago

Android assembleRelease crashed on me with this error:

AAPT: error: resource android:attr/lStar not found.

Originating from node_modules\vision-camera-face-detector\android\build\intermediates\merged_res\release\values\values.xml:2756.

Already having the fix from here: https://github.com/rodgomesc/vision-camera-code-scanner/issues/112#issuecomment-1311568751 in place for the same problem in a similar dependency, I modified android/app/build.grade to include:

buildscript {
...
    ext {
    ...
        VisionCameraFaceDetector_compileSdkVersion = 33
        VisionCameraFaceDetector_minSdkVersion = 21
        VisionCameraFaceDetector_targetSdkVersion = 33
    ...
    }
...
}

which fixed this problem