juliuscanute / qr_code_scanner

QR Code Scanner for Flutter
BSD 2-Clause "Simplified" License
1.01k stars 782 forks source link

The android AGP version fails to be compiled after being upgraded to 8.7 #740

Open querli opened 3 months ago

querli commented 3 months ago

Describe the bug Due to the upgrade of the android environment, AGP is gradle-8.7, the editing error message is as follows, other dependent flutter packages do not have any problems, please tell me how to solve the problem? thank you

Flutter information Flutter (Channel stable, 3.22.1, on macOS 14.5 23F79 darwin-x64, locale zh-Hans-CN) • Flutter version 3.22.1 on channel stable at /Users/querli/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision a14f74ff3a (9 weeks ago), 2024-05-22 11:08:21 -0500 • Engine revision 55eae6864b • Dart version 3.4.1 • DevTools version 2.34.3 • Pub download mirror https://pub.flutter-io.cn • Flutter download mirror https://storage.flutter-io.cn

Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at /Users/querli/Library/Android/sdk

Device (please complete the following information): [✓] Connected device (3 available) • SM G996U (mobile) • RFCR40P1YWD • android-arm64 • Android 12 (API 31) • macOS (desktop) • macos • darwin-x64 • macOS 14.5 23F79 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 126.0.6478.183

Screenshots

image

Additional context FAILURE: Build failed with an exception.

samnbd commented 3 months ago

Same issue heppened for me, I forked the repo and updated the java target to 1.8, you can use it in pubspec.yaml as follow:

qr_code_scanner:
    git:
      url: https://github.com/samnbd/qr_code_scanner
      ref: master
      version: ^1.0.0