flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
166.11k stars 27.43k forks source link

fail to build app #157362

Open MahmoudArafaaat opened 1 week ago

MahmoudArafaaat commented 1 week ago
C:\Users\lenove.gradle\caches\transforms-3\188dceb273984fef8fcd3e82981a112e\transformed\jetified-kotlin-stdlib-1.9.0.jar!\META-INF\kotlin-stdlib-jdk7.kotlin_module: error: module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
C:\Users\lenove.gradle\caches\transforms-3\188dceb273984fef8fcd3e82981a112e\transformed\jetified-kotlin-stdlib-1.9.0.jar!\META-INF\kotlin-stdlib-jdk8.kotlin_module: error: module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
C:\Users\lenove.gradle\caches\transforms-3\188dceb273984fef8fcd3e82981a112e\transformed\jetified-kotlin-stdlib-1.9.0.jar!\META-INF\kotlin-stdlib.kotlin_module: error: module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
C:\Users\lenove.gradle\caches\transforms-3\83291a7c1dfe8452c9ec29c627e1f049\transformed\jetified-kotlin-stdlib-common-1.9.0.jar!\META-INF\kotlin-stdlib-common.kotlin_module: error: module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':app:compileDebugKotlin'.
A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
Compilation error. See log for more details
darshankawar commented 1 week ago

@MahmoudArafaaat Check this and see if it helps in your case or not.

nisargkap commented 3 days ago

Screenshot 2024-10-29 at 4 22 15 PM

check if you have updated this also.