Skip to content

Commit 319fd31

Browse files
fix(android): pin osbarcode-android library version to 1.1.3 to resolve camera compatibility issue
The `@capacitor/barcode-scanner` library previously referenced `osbarcode-android` with a dynamic version (`1.+@aar`), which resulted in the app using version `1.1.5-dev2`. This caused a crash on Android when attempting to open the QR code scanning camera due to the error: `java.lang.NoSuchFieldError: No field Companion of type Landroidx/camera/lifecycle/ProcessCameraProvider$Companion;`
1 parent 278a346 commit 319fd31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ repositories {
7878
dependencies {
7979
// implementation fileTree(dir: 'libs', include: ['*.aar', '*.jar'])
8080
//noinspection GradleDynamicVersion
81-
implementation "com.github.outsystems:osbarcode-android:1.+@aar"
81+
implementation "com.github.outsystems:osbarcode-android:1.1.3@aar"
8282
implementation project(':capacitor-android')
8383
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
8484
implementation 'androidx.activity:activity-ktx:1.8.2'

0 commit comments

Comments
 (0)