Closed SubutaDan closed 2 months ago
same too
Adding this into android/build.gradle
solved it for me
subprojects { afterEvaluate { android { compileSdkVersion 34 } } }
(if you have some existing subprojects
blocks, make this one be the first)
Here's a comment I found that explained it in more detail: https://github.com/transistorsoft/flutter_background_fetch/issues/369#issuecomment-2288110601
Thank you, slovnicki. After following your suggestion I am able to build my app in release mode.
slovnicki
Thank you, slovnicki. it's work for me too
I am unable to build my Flutter app. that uses social_share in Release mode. I am getting this message:
When I try to build in Release mode I also get numerous error messages about a Kotlin version incompatibility, for example:
e: /Users/dan/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/2.0.20/7388d355f7cceb002cd387ccb7ab3850e4e0a07f/kotlin-stdlib-2.0.20.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.6.0.
I think the two are related, but I don't know for sure.
I have done some googling and tried some recommended fixes and workarounds but have not been able to execute the build in Release mode.
I think this problem may have begun when I upgraded Flutter, but downgrading doesn't seem to resolve the issue.
Anyone else encountering this? Any suggestions for resolving?
Thank you for your help.