Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build with flutter 3.22.2 #512

Open
tungt84 opened this issue Jun 23, 2024 · 4 comments
Open

Can't build with flutter 3.22.2 #512

tungt84 opened this issue Jun 23, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@tungt84
Copy link

tungt84 commented Jun 23, 2024

Describe the bug
Can't build with flutter 3.22.2

FAILURE: Build failed with an exception.

  • What went wrong:
    The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
    The following dependencies do not satisfy the required version:
    project ':pdfx' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50

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.

  • What went wrong:
    The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
    The following dependencies do not satisfy the required version:
    project ':pdfx' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.

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!

@tungt84 tungt84 added the bug Something isn't working label Jun 23, 2024
@emakar
Copy link
Contributor

emakar commented Jul 6, 2024

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
Copy link

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

for fuck sake

@madbusse
Copy link

@emakar where do you specify this dependency?

@stan-at-work
Copy link

@emakar where do you specify this dependency?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants