· moon-nocode.fr

camera_android_camerax:compileReleaseJavaWithJavac'.

Custom Code

Hello, I've published my app on iOS and there's no problem. But on Google, I get this error.

Does anyone know where this is coming from? ;)

<body style="background-color:#14161C">
<style>
body {
  color:#C8C8C8;
  overflow-x: hidden;
  padding-top: 0px;
  padding-right: 5px;
  padding-bottom: 5px;
  padding-left: 5px;
  font-family: monaco;
}
h4 {
  margin-bottom: 4px;
  font-weight: bold;
  color: #DF3F3F;
}
</style>
<h4>Failed Step: Build AAB with Flutter</h4>
<div style="white-space: pre-wrap;line-height: 1.5">
Resolving dependencies...
Downloading packages...
  _flutterfire_internals 1.3.33 (1.3.43 available)
  apivideo_live_stream 1.0.7 (1.2.0 available)
  cached_network_image 3.3.1 (3.4.1 available)
  cached_network_image_platform_interface 4.0.0 (4.1.1 available)
  cached_network_image_web 1.2.0 (1.3.1 available)
  camera_android_camerax 0.6.8+2 (0.6.8+3 available)
  cloud_firestore 4.17.3 (5.4.2 available)
  cloud_firestore_platform_interface 6.2.3 (6.4.2 available)
  cloud_firestore_web 3.12.3 (4.3.1 available)
  cloud_functions 4.7.4 (5.1.2 available)
  cloud_functions_platform_interface 5.5.26 (5.5.36 available)
  cloud_functions_web 4.9.4 (4.10.1 available)
  collection 1.18.0 (1.19.0 available)
  device_info_plus 9.1.0 (10.1.2 available)
  device_info_plus_platform_interface 7.0.0 (7.0.1 available)
  file_picker 8.0.3 (8.1.2 available)
  firebase_auth 4.19.5 (5.3.0 available)
  firebase_auth_platform_interface 7.2.6 (7.4.6 available)
  firebase_auth_web 5.11.5 (5.13.1 available)
  firebase_core 2.31.0 (3.5.0 available)
  firebase_core_platform_interface 5.0.0 (5.3.0 available)
  firebase_core_web 2.17.0 (2.18.1 available)
  firebase_messaging 14.9.2 (15.1.2 available)
  firebase_messaging_platform_interface 4.5.35 (4.5.45 available)
  firebase_messaging_web 3.8.5 (3.9.1 available)
  firebase_storage 11.7.5 (12.3.1 available)
  firebase_storage_platform_interface 5.1.20 (5.1.30 available)
  firebase_storage_web 3.9.5 (3.10.1 available)
  flutter_cache_manager 3.3.1 (3.4.1 available)
  flutter_launcher_icons 0.13.1 (0.14.1 available)
  flutter_plugin_android_lifecycle 2.0.20 (2.0.22 available)
  flutter_stripe 10.1.1 (11.1.0 available)
  flutter_stripe_web 5.1.0 (6.1.0 available)
  go_router 12.1.3 (14.2.8 available)
  google_fonts 6.1.0 (6.2.1 available)
  google_identity_services_web 0.2.2 (0.3.1+4 available)
  google_sign_in 6.1.5 (6.2.1 available)
  google_sign_in_android 6.1.20 (6.1.30 available)
  google_sign_in_ios 5.7.6 (5.7.7 available)
  google_sign_in_platform_interface 2.4.2 (2.4.5 available)
  google_sign_in_web 0.12.1 (0.12.4+2 available)
! http 1.2.1 (overridden) (1.2.2 available)
  http_parser 4.0.2 (4.1.0 available)
  image 4.0.17 (4.2.0 available)
  image_picker 1.0.4 (1.1.2 available)
  image_picker_android 0.8.8 (0.8.12+13 available)
  image_picker_for_web 3.0.1 (3.0.5 available)
  image_picker_ios 0.8.8+2 (0.8.12 available)
  image_picker_platform_interface 2.9.1 (2.10.0 available)
  js 0.6.7 (0.7.1 available)
  json_path 0.7.2 (0.7.4 available)
  leak_tracker 10.0.4 (10.0.7 available)
  leak_tracker_flutter_testing 3.0.3 (3.0.8 available)
  material_color_utilities 0.8.0 (0.12.0 available)
  meta 1.12.0 (1.16.0 available)
  mime_type 1.0.0 (1.0.1 available)
  native_device_orientation 1.2.1 (2.0.3 available)
  path_provider 2.1.3 (2.1.4 available)
  path_provider_android 2.2.5 (2.2.10 available)
  purchases_flutter 6.0.0 (8.1.2 available)
  rxdart 0.27.7 (0.28.0 available)
  shared_preferences 2.2.2 (2.3.2 available)
  shared_preferences_android 2.2.1 (2.3.2 available)
  shared_preferences_foundation 2.3.4 (2.5.2 available)
  shared_preferences_linux 2.3.2 (2.4.1 available)
  shared_preferences_platform_interface 2.3.1 (2.4.1 available)
  shared_preferences_web 2.2.1 (2.4.2 available)
  shared_preferences_windows 2.3.2 (2.4.1 available)
  sign_in_with_apple 4.3.0 (6.1.2 available)
  sign_in_with_apple_platform_interface 1.0.0 (1.1.0 available)
  sign_in_with_apple_web 1.0.1 (2.1.0 available)
  sqflite 2.2.6 (2.3.3+1 available)
  sqflite_common 2.5.4 (2.5.4+3 available)
  stop_watch_timer 3.0.2 (3.2.1 available)
  string_scanner 1.2.0 (1.3.0 available)
  stripe_android 10.1.1 (11.1.0 available)
  stripe_ios 10.1.0 (11.1.0 available)
  stripe_js 3.4.0 (6.1.0 available)
  stripe_platform_interface 10.1.1 (11.1.1 available)
  synchronized 3.1.0+1 (3.3.0+2 available)
  test_api 0.7.0 (0.7.3 available)
  timeago 3.6.1 (3.7.0 available)
  url_launcher_android 6.3.4 (6.3.10 available)
! uuid 4.5.0 (overridden)
  video_player_android 2.4.16 (2.7.3 available)
  video_player_web 2.3.1 (2.3.2 available)
  vm_service 14.2.1 (14.2.5 available)
  wakelock_plus 1.2.5 (1.2.8 available)
  web 0.5.1 (1.1.0 available)
! win32 5.5.1 (overridden) (5.5.4 available)
Got dependencies!
89 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.

Upgrading build.gradle
Running Gradle task 'bundleRelease'...                          
Checking the license for package Android SDK Platform 34 in /usr/local/share/android-sdk/licenses
License for package Android SDK Platform 34 accepted.
Preparing "Install Android SDK Platform 34 (revision: 3)".
"Install Android SDK Platform 34 (revision: 3)" ready.
Installing Android SDK Platform 34 in /usr/local/share/android-sdk/platforms/android-34
"Install Android SDK Platform 34 (revision: 3)" complete.
"Install Android SDK Platform 34 (revision: 3)" finished.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/builder/.pub-cache/hosted/pub.dev/native_device_orientation-1.2.1/android/src/main/java/com/github/rmtmckenzie/native_device_orientation/NativeDeviceOrientationPlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
/Users/builder/.pub-cache/hosted/pub.dev/camera_android_camerax-0.6.8+2/android/src/main/java/io/flutter/plugins/camerax/PreviewHostApiImpl.java:84: error: cannot find symbol
            new TextureRegistry.SurfaceProducer.Callback() {
                                               ^
  symbol:   class Callback
  location: interface SurfaceProducer
/Users/builder/.pub-cache/hosted/pub.dev/camera_android_camerax-0.6.8+2/android/src/main/java/io/flutter/plugins/camerax/PreviewHostApiImpl.java:85: error: method does not override or implement a method from a supertype
              @Override
              ^
/Users/builder/.pub-cache/hosted/pub.dev/camera_android_camerax-0.6.8+2/android/src/main/java/io/flutter/plugins/camerax/PreviewHostApiImpl.java:91: error: method does not override or implement a method from a supertype
              @Override
              ^
3 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':camera_android_camerax:compileReleaseJavaWithJavac'.
&gt; Compilation failed; see the compiler error output for details.

* Try:
&gt; Run with --stacktrace option to get the stack trace.
&gt; Run with --info or --debug option to get more log output.
&gt; Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 2m
Running Gradle task 'bundleRelease'...                            121.0s
Gradle task bundleRelease failed with exit code 1


Build failed :|
Step 7 script `Build AAB with Flutter` exited with status code 1
</div>
</body>
What have you tried so far?

For my part, I've already tried to remove and redeploy the ‘camera’ package, and I've also tried building with a higher version to see if the problem didn't come from there. But nothing

Did you check FlutterFlow's Documentation for this topic?
No
1 reply