title: Cannot resolve symbol 'Theme.Material3.Light.NoActionBar' (Android Studio)
body: <p>I created a new Android project using Android Studio Arctic Fox | 2020.3.1 Patch 3 and my goal is to simply customize my app to use Material3 theme</p>
  <p>Error occurs at <strong>values\themes.xml</strong> saying <code>Cannot resolve symbol 'Theme.Material3.Light.NoActionBar'</code></p>
  <p>I have found a kinda similar issue on this <a href="https://stackoverflow.com/questions/57282947/cannot-resolve-symbol-theme-materialcomponents-light-noactionbar-android-studio#">Question</a> but <code>'Theme.MaterialComponents.Light.NoActionBar'</code> was my default theme when i created the project and it had no errors, the error started when i changed to use <code>Theme.Material3.Light.NoActionBar</code> as per this article on <a href="https://material.io/blog/migrating-material-3" rel="nofollow noreferrer"><strong>Migrating to Material Design 3</strong></a> under section <em>Migrating from M2 to M3 (MDC 1.4.0 to MDC 1.5.0)</em></p>
  <p>I have tried Sync project with gradle files, Invalidate cache /restart.. but i still get the same error</p>
  <p>I have used <a href="https://material-foundation.github.io/material-theme-builder/" rel="nofollow noreferrer">Material Theme builder</a> to generate my <code>themes.xml</code> and <code>colors.xml</code> and below are my files</p>
  <p><em><strong>themes.xml</strong></em></p>
  <pre><code>&lt;resources&gt;
      &lt;style name=&quot;Theme.App&quot; parent=&quot;Theme.Material3.Light.NoActionBar&quot;&gt;
          &lt;item name=&quot;colorPrimary&quot;&gt;@color/md_theme_light_primary&lt;/item&gt;
          &lt;item name=&quot;colorOnPrimary&quot;&gt;@color/md_theme_light_onPrimary&lt;/item&gt;
          &lt;item name=&quot;colorPrimaryContainer&quot;&gt;@color/md_theme_light_primaryContainer&lt;/item&gt;
          &lt;item name=&quot;colorOnPrimaryContainer&quot;&gt;@color/md_theme_light_onPrimaryContainer&lt;/item&gt;
          &lt;item name=&quot;colorSecondary&quot;&gt;@color/md_theme_light_secondary&lt;/item&gt;
          &lt;item name=&quot;colorOnSecondary&quot;&gt;@color/md_theme_light_onSecondary&lt;/item&gt;
          &lt;item name=&quot;colorSecondaryContainer&quot;&gt;@color/md_theme_light_secondaryContainer&lt;/item&gt;
          &lt;item name=&quot;colorOnSecondaryContainer&quot;&gt;@color/md_theme_light_onSecondaryContainer&lt;/item&gt;
          &lt;item name=&quot;colorTertiary&quot;&gt;@color/md_theme_light_tertiary&lt;/item&gt;
          &lt;item name=&quot;colorOnTertiary&quot;&gt;@color/md_theme_light_onTertiary&lt;/item&gt;
          &lt;item name=&quot;colorTertiaryContainer&quot;&gt;@color/md_theme_light_tertiaryContainer&lt;/item&gt;
          &lt;item name=&quot;colorOnTertiaryContainer&quot;&gt;@color/md_theme_light_onTertiaryContainer&lt;/item&gt;
          &lt;item name=&quot;colorError&quot;&gt;@color/md_theme_light_error&lt;/item&gt;
          &lt;item name=&quot;colorErrorContainer&quot;&gt;@color/md_theme_light_errorContainer&lt;/item&gt;
          &lt;item name=&quot;colorOnError&quot;&gt;@color/md_theme_light_onError&lt;/item&gt;
          &lt;item name=&quot;colorOnErrorContainer&quot;&gt;@color/md_theme_light_onErrorContainer&lt;/item&gt;
          &lt;item name=&quot;android:colorBackground&quot;&gt;@color/md_theme_light_background&lt;/item&gt;
          &lt;item name=&quot;colorOnBackground&quot;&gt;@color/md_theme_light_onBackground&lt;/item&gt;
          &lt;item name=&quot;colorSurface&quot;&gt;@color/md_theme_light_surface&lt;/item&gt;
          &lt;item name=&quot;colorOnSurface&quot;&gt;@color/md_theme_light_onSurface&lt;/item&gt;
          &lt;item name=&quot;colorSurfaceVariant&quot;&gt;@color/md_theme_light_surfaceVariant&lt;/item&gt;
          &lt;item name=&quot;colorOnSurfaceVariant&quot;&gt;@color/md_theme_light_onSurfaceVariant&lt;/item&gt;
          &lt;item name=&quot;colorOutline&quot;&gt;@color/md_theme_light_outline&lt;/item&gt;
          &lt;item name=&quot;colorOnSurfaceInverse&quot;&gt;@color/md_theme_light_inverseOnSurface&lt;/item&gt;
          &lt;item name=&quot;colorSurfaceInverse&quot;&gt;@color/md_theme_light_inverseSurface&lt;/item&gt;
          &lt;item name=&quot;colorPrimaryInverse&quot;&gt;@color/md_theme_light_primaryInverse&lt;/item&gt;
      &lt;/style&gt;
  &lt;/resources&gt;
  </code></pre>
  <p><em><strong>build.gradle (app)</strong></em></p>
  <pre><code>plugins {
      id 'com.android.application'
  }
  
  android {
      compileSdk 31
  
      defaultConfig {
          applicationId &quot;com.blablabla&quot;
          minSdk 21
          targetSdk 31
          versionCode 1
          versionName &quot;1.0&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
      }
      buildToolsVersion '32.0.0 rc1'
  }
  
  dependencies {
      implementation 'androidx.compose.material3:material3:1.0.0-alpha02'
      implementation 'androidx.appcompat:appcompat:1.4.0'
      implementation 'com.google.android.material:material:1.4.0'
      implementation 'androidx.constraintlayout:constraintlayout:2.1.2'
      testImplementation 'junit:junit:'
      androidTestImplementation 'androidx.test.ext:junit:1.1.3'
      androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  }
  </code></pre>
  <p><em><strong>buid.gradle (project)</strong></em></p>
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  buildscript {
      repositories {
          google()
          mavenCentral()
      }
      dependencies {
          classpath &quot;com.android.tools.build:gradle:7.0.4&quot;
  
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>