title: Cannot resolve symbol 'File' in settings gradle
body: <p>I'm using the android studios IDE, SDK version 32, build tools 33, and java version 1.8
  <a href="https://i.stack.imgur.com/Gls7d.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Gls7d.png" alt="enter image description here" /></a></p>
  <p>I keep getting the error</p>
  <blockquote>
  <p>Cannot resolve symbol 'File'</p>
  </blockquote>
  <p>And actually the gradle syncs somehow and the file is created, but I need to solve the error</p>
  <p><strong>This is the settings gradle:</strong></p>
  <pre><code>pluginManagement {
  repositories {
      gradlePluginPortal()
      google()
      mavenCentral()
  }
  }
  
  dependencyResolutionManagement {
  repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
  repositories {
      google()
      mavenCentral()
  
      maven {
          url &quot;https://dl.cloudsmith.io/public/cometchat/cometchat-pro-android/maven/&quot;
      }
  }
  }
  rootProject.name = &quot;ViegerT2&quot;
  include ':app'
  include ':uikit'
  project(':uikit').projectDir = new File(rootDir, 'android-java-chat-ui- 
  kit/uikit/')
  </code></pre>
  <p><strong>This is the project gradle:</strong></p>
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  plugins {
  id 'com.android.application' version '7.2.1' apply false
  id 'com.android.library' version '7.2.1' apply false
  id 'org.jetbrains.kotlin.android' version '1.6.10' apply false
  }
  
  task clean(type: Delete) {
  delete rootProject.buildDir
  }
  </code></pre>
  <p><strong>This is the APP gradle:</strong></p>
  <pre><code>plugins {
  id 'com.android.application'
  id 'org.jetbrains.kotlin.android'
  }
  
  android {
  compileSdk 32
  
  defaultConfig {
      applicationId &quot;com.example.viegert2&quot;
      minSdk 21
      targetSdk 32
      versionCode 1
      versionName &quot;1.0&quot;
      manifestPlaceholders = [file_provider: &quot;ViagerT2&quot;]
  
      testInstrumentationRunner &quot;androidx.test.runner.AndroidJUnitRunner&quot;
  }
  
  buildTypes {
      release {
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
      }
  }
  compileOptions {
      sourceCompatibility JavaVersion.VERSION_1_8
      targetCompatibility JavaVersion.VERSION_1_8
  }
  kotlinOptions {
      jvmTarget = '1.8'
  }
  buildFeatures {
      viewBinding true
  }
  packagingOptions {
      exclude 'META-INF/proguard/androidx-annotations.pro'
      exclude 'META-INF/androidx.cardview_cardview.version'
  
  }
  buildToolsVersion '33.0.0'
  
  }
  
  dependencies {
  
  implementation 'androidx.core:core-ktx:1.7.0'
  implementation 'androidx.appcompat:appcompat:1.5.0'
  implementation 'com.google.android.material:material:1.6.1'
  implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  implementation 'androidx.annotation:annotation:1.4.0'
  implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.5.1'
  implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1'
  //noinspection GradleCompatible
  implementation 'com.android.support:cardview-v7:28.0.0'
  implementation 'androidx.recyclerview:recyclerview:1.2.1'
  
  testImplementation 'junit:junit:4.13.2'
  androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  apply plugin: 'kotlin-android-extensions'
  
  
  
  //implementation 'androidx.core:core-ktx:1.3.2'
  //implementation 'androidx.appcompat:appcompat:1.3.1'
  //implementation 'com.google.android.material:material:1.4.0'
  //implementation 'androidx.constraintlayout:constraintlayout:2.1.1'
  implementation platform('com.google.firebase:firebase-bom:29.0.0')
  implementation 'com.google.firebase:firebase-analytics-ktx'
  implementation 'com.google.firebase:firebase-auth-ktx'
  implementation 'com.google.firebase:firebase-database-ktx'
  implementation 'com.google.firebase:firebase-storage-ktx'
  implementation 'com.cometchat:pro-android-chat-sdk:3.0.0'
  implementation 'com.cometchat:pro-android-calls-sdk:2.1.0'
  implementation &quot;androidx.recyclerview:recyclerview:1.2.1&quot;
  implementation 'com.github.bumptech.glide:glide:4.12.0'
  //implementation project(path: ':uikit-kotlin')
  implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
  
  
  
  
  
  
  implementation project(path: ':uikit')
   }  
  </code></pre>
  <p><strong>And I also have this module gradle:</strong></p>
  <pre><code>apply plugin: 'com.android.library'
  android {
  compileSdkVersion 30
  
  defaultConfig {
      minSdkVersion 21
      targetSdkVersion 30
      versionCode 1
      versionName &quot;3.0.9-1&quot;
      multiDexEnabled true
      vectorDrawables.useSupportLibrary = true
      renderscriptSupportModeEnabled true
      testInstrumentationRunner &quot;androidx.test.runner.AndroidJUnitRunner&quot;
      consumerProguardFiles 'consumer-rules.pro'
  
      ndk {
          abiFilters &quot;armeabi-v7a&quot;, &quot;x86&quot;, &quot;arm64-v8a&quot;, &quot;x86_64&quot;
      }
  }
  
  sourceSets {
      main {
          manifest.srcFile 'src/main/AndroidManifest.xml'
          java.srcDirs = ['src/main/java', '.apt_generated']
          aidl.srcDirs = ['src/main/aidl', '.apt_generated']
          res.srcDirs = [
                  'src/main/res',
                  'src/main/res-components',
                  'src/main/res-components/calls',
                  'src/main/res-components/chats',
                  'src/main/res-components/cometchatui',
                  'src/main/res-components/groups',
                  'src/main/res-components/messagebubbles',
                  'src/main/res-components/messages',
                  'src/main/res-components/others',
                  'src/main/res-components/shared',
                  'src/main/res-components/userprofile',
                  'src/main/res-components/users'
                  ]
      }
  }
  
  dataBinding {
      enabled = true
  }
  
  compileOptions {
      sourceCompatibility JavaVersion.VERSION_1_8
      targetCompatibility JavaVersion.VERSION_1_8
  }
  
  buildTypes {
      release {
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
      }
  }
  buildToolsVersion = '28.0.3'
  
  }
  
  dependencies {
  implementation fileTree(dir: 'libs', include: ['*.jar'])
  
  implementation 'androidx.appcompat:appcompat:1.1.0'
  implementation 'androidx.preference:preference:1.1.0'
  testImplementation 'junit:junit:4.12'
  androidTestImplementation 'androidx.test:runner:1.2.0'
  androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  
  //RecyclerView
  implementation 'androidx.recyclerview:recyclerview:1.0.0'
  
  implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  
  implementation 'androidx.emoji:emoji:1.1.0-rc01'
  implementation 'androidx.emoji:emoji-bundled:1.1.0'
  
  implementation 'androidx.emoji:emoji-appcompat:1.0.0'
  implementation 'androidx.annotation:annotation:1.1.0'
  implementation 'com.github.bumptech.glide:glide:4.9.0'
  annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
  
  implementation 'com.google.android.material:material:1.2.0-alpha04'
  
  implementation 'com.facebook.shimmer:shimmer:0.4.0'
  
  implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
  
  implementation 'com.google.android.gms:play-services-location:17.0.0'
  implementation 'com.google.android.gms:play-services-maps:17.0.0'
  //cometchat
  compileOnly 'com.cometchat:pro-android-chat-sdk:3.0.9'
  compileOnly 'com.cometchat:pro-android-calls-sdk:2.2.0'
  implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.4.0'
  }
  </code></pre>