-
Notifications
You must be signed in to change notification settings - Fork 146
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
Compilation error due to mismatch between compileDebugJavaWithJavac and compileDebugKotlin #142
Comments
I have also tried to comment out compileOptions and kotlinOptions in the app/build.gradle, replacing them with the jvmToolchain, but the error is still the same:
|
Having same issues. Execution failed for task ':flutter_contacts:compileDebugKotlin'.
|
My setup Doctor summary (to see all details, run flutter doctor -v):
and multi flavor implemented. |
Nothing at all? |
I fixed this by adding:
to the build.gradle file. Please modify your build.gradle file as follows:
|
Add below code in your project level build.gradle file. This worked for me. Also help me in other modules where same issue occurred.
|
Is this the same as #158 ? |
I have already provided the solution, you simply need to implement it. Add the following lines to your android/build.gradle:
Please refer to my previous message:
|
OH cmon developer!!! we need real fix for this problem, can you please upgrade you package!! |
Is there any negative effect on the project? I mean, is this affecting anything else in the project or breaking something? |
Can you please simply update the build.gradle file with the changes I have shown? It really takes 30 seconds, and fixes the issue. |
This is what worked for me: |
Hi all - thanks for your patience and the recommended solutions. This should be fixed in version 1.1.9. If it is not, please let me know, and reopen this conversation. |
Yes, it fixes the issue and the app now compiles fine on Android. Thanks! |
This issue started happening after upgrading my Kotlin version to 1.9.20 and Gradle plugin to 8.3.
Whenever I try to run the app on Android devices or Android emulator (no issues with iOS), I get this error message during assembleDebug:
I have tried to change the following in my app/build.gradle, but nothing seems to have any effect on the final result, I always get the same exact error:
This is the content of my android/build.gradle:
This is the content of my app/build.gradle:
This is the output of my flutter doctor -v:
The text was updated successfully, but these errors were encountered: