Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR:AAPT: error: resource style/Theme.AppCompat.light.NoActionBar

I am encountering a problem on my project build.

I am using the techno flutter. I am using Android-Studio on Windows 11.

The error is:

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
   > Android resource linking failed
     ERROR:AAPT: error: resource style/Theme.AppCompat.light.NoActionBar (aka com.example.nysos:style/Theme.AppCompat.light.NoActionBar) not found.
     error: failed linking references.

I have already cleared my gradle cache, used flutter clean, File > Invalidate caches > Clear file system chache and Local History > Invalidate and restart.

Could you please help me fixing this error ?

like image 617
Da2ny Avatar asked Jul 19 '26 13:07

Da2ny


1 Answers

Add the dependency on Android’s Material in /android/app/build.gradle:

dependencies {
// ...
implementation 'com.google.android.material:material:<version>'
// ...

}

To find out the latest version, visit Google Maven.

like image 195
Shraddha Pandey Avatar answered Jul 22 '26 04:07

Shraddha Pandey