From 0803880610321dd5341039e23bdae569f0582a64 Mon Sep 17 00:00:00 2001 From: 0xfe10 <0xfe10@proton.me> Date: Tue, 27 Jan 2026 01:19:40 +0000 Subject: [PATCH] fix(camera_android_camerax): Add missing androidx.concurrent:concurrent-futures dependency Fixes build failure when compiling with CameraX 1.5.2: error: Cannot attach type annotations @org.jspecify.annotations.NonNull class file for androidx.concurrent.futures.CallbackToFutureAdapter not found The androidx.camera:camera-core:1.5.2 library internally uses CallbackToFutureAdapter from androidx.concurrent.futures, but this dependency was not explicitly declared in build.gradle. This fix adds the missing androidx.concurrent:concurrent-futures:1.2.0 dependency to resolve the compilation error. --- packages/camera/camera_android_camerax/android/build.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/camera/camera_android_camerax/android/build.gradle b/packages/camera/camera_android_camerax/android/build.gradle index e8d90340786..5e4fcf172ab 100644 --- a/packages/camera/camera_android_camerax/android/build.gradle +++ b/packages/camera/camera_android_camerax/android/build.gradle @@ -74,6 +74,7 @@ dependencies { // CameraX core library using the camera2 implementation must use same version number. def camerax_version = "1.5.2" implementation("androidx.camera:camera-core:${camerax_version}") + implementation("androidx.concurrent:concurrent-futures:1.2.0") implementation("androidx.camera:camera-camera2:${camerax_version}") implementation("androidx.camera:camera-lifecycle:${camerax_version}") implementation("androidx.camera:camera-video:${camerax_version}")