From 319fd31e4d8a87511be5767fca68e19483ac3ea2 Mon Sep 17 00:00:00 2001 From: Tanaka Yoichiro Date: Thu, 14 Nov 2024 17:05:52 +0900 Subject: [PATCH] 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;` --- plugin/android/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/android/build.gradle b/plugin/android/build.gradle index d46659c..3fe0377 100644 --- a/plugin/android/build.gradle +++ b/plugin/android/build.gradle @@ -78,7 +78,7 @@ repositories { dependencies { // implementation fileTree(dir: 'libs', include: ['*.aar', '*.jar']) //noinspection GradleDynamicVersion - implementation "com.github.outsystems:osbarcode-android:1.+@aar" + implementation "com.github.outsystems:osbarcode-android:1.1.3@aar" implementation project(':capacitor-android') implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion" implementation 'androidx.activity:activity-ktx:1.8.2'