[!] Your project requires a newer version of the Kotlin Gradle plugin. Error

DevOps

YOUR COSMETIC CARE STARTS HERE

Find the Best Cosmetic Hospitals

Trusted β€’ Curated β€’ Easy

Looking for the right place for a cosmetic procedure? Explore top cosmetic hospitals in one place and choose with confidence.

β€œSmall steps lead to big changes β€” today is a perfect day to begin.”

Explore Cosmetic Hospitals Compare hospitals, services & options quickly.

βœ“ Shortlist providers β€’ βœ“ Review options β€’ βœ“ Take the next step with confidence

Error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':fluttertoast:compileDebugKotlin'.
> Compilation error. See log for more details

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 45s
Running Gradle task 'assembleDebug'...                            107.9s

β”Œβ”€ Flutter Fix ──────────────────────────────────────────────────────────────────────────────────────────────┐
β”‚ [!] Your project requires a newer version of the Kotlin Gradle plugin.                                                                            β”‚
β”‚ Find the latest version on https://kotlinlang.org/docs/gradle.html#plugin-and-versions, 
| then update E:\flutter_apps\geodata\android\build.gradle: β”‚
β”‚ ext.kotlin_version = '<latest-version>'                                                                                                           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
Exception: Gradle task assembleDebug failed with exit code 1Code language: PHP (php)

Solution of This error:

The latest version we get is “1.6.21”, now you have to update the version code at build.gradle located at android\build.gradle path.

change the version no. of ext.kotlin_version.

In this way, you can solve “your project requires a newer version of the kotlin gradle plugin” error in Flutter.

0 0 votes
Article Rating
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x