[FLUTTER SDK] I'm trying to do a fresh install

flutter cometchat: ^3.0.1

Bags

Hello, I’m installing for the first time. sdk for flutter

flutter.pub-cache\hosted__\cometchat-3.0.1\android\src\main\kotlin\com\cometchat\pro\CometchatPlugin.kt: (1770, 26): Type mismatch: inferred type is String? but String was expected

src\flutter.pub-cache\hosted__\cometchat-3.0.1\android\src\main\kotlin\com\cometchat\pro\CometchatPlugin.kt: (1786, 30): Type mismatch: inferred type is String? but String was expected

src\flutter.pub-cache\hosted__\cometchat-3.0.1\android\src\main\kotlin\com\cometchat\pro\CometchatPlugin.kt: (1810, 30): Type mismatch: inferred type is String? but String was expected

src\flutter.pub-cache\hosted__\cometchat-3.0.1\android\src\main\kotlin\com\cometchat\pro\CometchatPlugin.kt: (1830, 30): Type mismatch: inferred type is String? but String was expected

src\flutter.pub-cache\hosted__\cometchat-3.0.1\android\src\main\kotlin\com\cometchat\pro\CometchatPlugin.kt: (1847, 30): Type mismatch: inferred type is String? but String was expected

src\flutter.pub-cache\hosted__\cometchat-3.0.1\android\src\main\kotlin\com\cometchat\pro\CometchatPlugin.kt: (1865, 34): Type mismatch: inferred type is String? but String was expected

src\flutter.pub-cache\hosted__\cometchat-3.0.1\android\src\main\kotlin\com\cometchat\pro\CometchatPlugin.kt: (1886, 30): Type mismatch: inferred type is String? but String was expected

src\flutter.pub-cache\hosted__\cometchat-3.0.1\android\src\main\kotlin\com\cometchat\pro\CometchatPlugin.kt: (1912, 34): Type mismatch: inferred type is String? but String was expected

src\flutter.pub-cache\hosted__\cometchat-3.0.1\android\src\main\kotlin\com\cometchat\pro\CometchatPlugin.kt: (1931, 30): Type mismatch: inferred type is String? but String was expected

src\flutter.pub-cache\hosted__\cometchat-3.0.1\android\src\main\kotlin\com\cometchat\pro\CometchatPlugin.kt: (1948, 30): Type mismatch: inferred type is String? but String was expected

src\flutter.pub-cache\hosted__\cometchat-3.0.1\android\src\main\kotlin\com\cometchat\pro\CometchatPlugin.kt: (1966, 30): Type mismatch: inferred type is String? but String was expected

src\flutter.pub-cache\hosted__\cometchat-3.0.1\android\src\main\kotlin\com\cometchat\pro\CometchatPlugin.kt: (1988, 30): Type mismatch: inferred type is String? but String was expected

src\flutter.pub-cache\hosted__\cometchat-3.0.1\android\src\main\kotlin\com\cometchat\pro\CometchatPlugin.kt: (2006, 30): Type mismatch: inferred type is String? but String was expected

My CONFIG

pubspec.yaml
dependencies:
cometchat: ^3.0.1

android {
compileSdkVersion 32
// compileSdkVersion flutter.compileSdkVersion
ndkVersion flutter.ndkVersion

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}

kotlinOptions {
    jvmTarget = '1.8'
}

sourceSets {
    main.java.srcDirs += 'src/main/kotlin'
}

defaultConfig {
    applicationId "com.myteam.optimist.biz.ua.my_team"
    minSdkVersion 21
    targetSdkVersion 32
    versionCode flutterVersionCode.toInteger()
    versionName flutterVersionName
}

so far i solved it this way

commented out
wherever this error occurred
result.error(e.message, e.message, e.toString())

Download the Flutter SDK from the flutter app development services

Thanks!!! Is it expensive? I mean your service