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

Build Failed [BUG] 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 ':qr_code_scanner' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.30 #724

Open
mehdinathani opened this issue Feb 24, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@mehdinathani
Copy link

Build Failed
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 ':qr_code_scanner' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.30
@mehdinathani mehdinathani added the bug Something isn't working label Feb 24, 2024
@mohamedaminehnioua
Copy link

mohamedaminehnioua commented Mar 21, 2024

Any updates on this problem?. I have Flutter v3.19.3 stable and still appears.

@beckietech
Copy link

I have Flutterv3.19.4 stable and the build fail message:
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':qr_code_scanner:compileDebugKotlin'.

'compileDebugJavaWithJavac' task (current target is 1.8) and 'compileDebugKotlin' task (current target is 17) jvm target compatibility should be set to the same Java version.
Consider using JVM toolchain: https://kotl.in/gradle/jvm/toolchain

@dola99
Copy link

dola99 commented Apr 3, 2024

you can use my repo it worked well with me


  qr_code_scanner: 
    git:
      url: https://github.com/dola99/qr_code_scanner
      ref: update

@mehdinathani
Copy link
Author

mehdinathani commented Apr 9, 2024 via email

@6lackknight
Copy link

how to integrate in my app can you guide pls?

On Thu, 4 Apr 2024 at 04:08, Mohamed Adel @.> wrote: you can use my repo it worked well with me qr_code_scanner: git: url: https://github.com/dola99/qr_code_scanner ref: update — Reply to this email directly, view it on GitHub <#724 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOJCH6UVBUL2LLXBP2JVZELY3SDYPAVCNFSM6AAAAABDX74HEGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZVG44DKMJYGY . You are receiving this because you authored the thread.Message ID: @.>
-- Regards Mehdi Abbas Nathani +92-333-3376531

replace the qr_code_scanner dependency in your pubspec.yaml with what @dola99 posted. You can see his fork is only one commit ahead of this repo with the only change being the bump on Kotlin version in build.gradle which will make this error go away.

@mehdinathani
Copy link
Author

mehdinathani commented Apr 22, 2024 via email

@dola99
Copy link

dola99 commented Apr 23, 2024

instead of calling your package like this
qr_code_scanner: ^1.0.1
replace with this :


  qr_code_scanner: 
    git:
      url: https://github.com/dola99/qr_code_scanner
      ref: update

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