ScerIO / packages.flutter

πŸ‘¨β€πŸ’» Plugins and packages for Flutter framework
https://pub.dev/publishers/serge.software/packages
MIT License
453 stars 442 forks source link

Can't build with flutter 3.22.2 #512

Open tungt84 opened 3 months ago

tungt84 commented 3 months ago

Describe the bug Can't build with flutter 3.22.2

FAILURE: Build failed with an exception.

To Reproduce Steps to reproduce the behavior:

  1. flutter create simple_project
  2. flutter pub add pdfx
  3. flutter build apk
  4. See error

Expected behavior FAILURE: Build failed with an exception.

BUILD FAILED in 2s Running Gradle task 'assembleRelease'... 3.6s Gradle task assembleRelease failed with exit code 1

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information): flutter doctor -v [βœ“] Flutter (Channel stable, 3.22.2, on macOS 14.5 23F79 darwin-x64, locale en-VN) β€’ Flutter version 3.22.2 on channel stable at /Users/tungt/development/flutter β€’ Upstream repository https://github.com/flutter/flutter.git β€’ Framework revision 761747bfc5 (3 weeks ago), 2024-06-05 22:15:13 +0200 β€’ Engine revision edd8546116 β€’ Dart version 3.4.3 β€’ DevTools version 2.34.3

[βœ“] Android toolchain - develop for Android devices (Android SDK version 35.0.0) β€’ Android SDK at /Users/tungt/Library/Android/sdk β€’ Platform android-35, build-tools 35.0.0 β€’ Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java β€’ Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105) β€’ All Android licenses accepted.

[βœ“] Xcode - develop for iOS and macOS (Xcode 15.4) β€’ Xcode at /Applications/Xcode.app/Contents/Developer β€’ Build 15F31d β€’ CocoaPods version 1.15.2

[βœ“] Chrome - develop for the web β€’ Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[βœ“] Android Studio (version 2024.1) β€’ Android Studio at /Applications/Android Studio.app/Contents β€’ Flutter plugin can be installed from: πŸ”¨ https://plugins.jetbrains.com/plugin/9212-flutter β€’ Dart plugin can be installed from: πŸ”¨ https://plugins.jetbrains.com/plugin/6351-dart β€’ Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105)

[βœ“] Connected device (2 available) β€’ macOS (desktop) β€’ macos β€’ darwin-x64 β€’ macOS 14.5 23F79 darwin-x64 β€’ Chrome (web) β€’ chrome β€’ web-javascript β€’ Google Chrome 126.0.6478.115

[βœ“] Network resources β€’ All expected network resources are available.

β€’ No issues found!

emakar commented 2 months ago

This just requires main branch being published Current workaround is to specify git dependency

  pdfx:
    git:
      url: https://github.com/ScerIO/packages.flutter.git
      ref: b3ddbb8b856b52bf51a196a9fb89ac61ba7a2cce # https://github.com/ScerIO/packages.flutter/pull/513
      path: packages/pdfx/
stan-at-work commented 2 months ago

@SergeShkurko @SergeShkurko Can someone finally push this to pub dev ....

for fuck sake

madbusse commented 2 months ago

@emakar where do you specify this dependency?

stan-at-work commented 2 months ago

@emakar where do you specify this dependency?

image