Settings.gradle': 1: Unexpected character: '?' @ line 1, column 1. ?pluginManagement {

Hi there, I’m facing this issue when i update my flutter in latest version “3.19+” then i got this issues how i fix this: here is the settings.gradle file codes

pluginManagement {
    def flutterSdkPath = {
        def properties = new Properties()
        file("").withInputStream { properties.load(it) }
        def flutterSdkPath = properties.getProperty("flutter.sdk")
        assert flutterSdkPath != null, "flutter.sdk not set in"
        return flutterSdkPath
    settings.ext.flutterSdkPath = flutterSdkPath()


    repositories {

plugins {
    id "dev.flutter.flutter-plugin-loader" version "1.0.0"
    id "" version "7.3.0" apply false
    id "" version "1.7.10" apply false

include ":app"

---------------------------------------- Console error-------------------------------

Launching lib\main.dart on CPH2239 in debug mode...
Running Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

* Where:
Settings file 'E:\Completed\Hiredge\jobkar_pro\android\settings.gradle' line: 1

* What went wrong:
Could not compile settings file 'E:\Completed\Hiredge\jobkar_pro\android\settings.gradle'.
> startup failed:
  settings file 'E:\Completed\Hiredge\jobkar_pro\android\settings.gradle': 1: Unexpected character: '?' @ line 1, column 1.
     ?pluginManagement {

  1 error

* 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

Error: Gradle task assembleDebug failed with exit code 1

Well, seems you have an additional character in front of pluginManagement.
It probably is a non-printable character that you do not see in your text editor.
Try placing the caret between p and l, then press one time left arrow and one time backspace, then save and try again.
Or use a hex editor to look at the file bytes.