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

'compileDebugJavaWithJavac' task error #47

Open
Blackheart8788 opened this issue Jul 3, 2024 · 5 comments
Open

'compileDebugJavaWithJavac' task error #47

Blackheart8788 opened this issue Jul 3, 2024 · 5 comments

Comments

@Blackheart8788
Copy link

Good afternoon,

After I updated gradle vertion up to 8.1 when I try to run the app I get this error:

**FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':print_bluetooth_thermal: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**

@andresperezmelo
Copy link
Owner

I will look into this and update this when I find a solution.

@penafarhan
Copy link

I fixed it with my forked repos

@Blackheart8788
Copy link
Author

How you do it???

@Blackheart8788
Copy link
Author

Blackheart8788 commented Aug 20, 2024

@penafarhan would you mind sharing how did you fix the issue?

@penafarhan
Copy link

penafarhan commented Aug 20, 2024

Hi @Blackheart8788, visit my repo https://github.com/penafarhan/print_bluetooth_thermal_plus. If you want to use it for your project, just add the below code to your pubsec.yaml

print_bluetooth_thermal:
    git:
      url: https://github.com/penafarhan/print_bluetooth_thermal_plus.git
      ref: main

There is no difference with the original, just some fixes. The implementation is exactly the same as written in the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants