if you are having this problem when using geolocator: ^12.0.0
┌─ Flutter Fix ──────────────────────────────────────────────────────────────────────────────┐
│ [!] Your project requires a newer version of the Kotlin Gradle plugin. │
│ Find the latest version on https://kotlinlang.org/docs/releases.html#release-details, then │
│ update /Users/your path/android/build.gradle: │
│ ext.kotlin_version = '' │
└────────────────────────────────────────────────────────────────────────────────────────────┘
Error: Gradle task assembleDebug failed with exit code 1
Resolution :
using with this package geolocator_android: 4.5.5
dev_dependencies:
geolocator: ^12.0.0
geolocator_android: 4.5.5