Issue
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 ?
Solution
In Android Studio:
- CTRL+SHIFT+F
- Enter in the search bar:
AppCompat
- Change
Theme.AppCompat.light.NoActionBar
toTheme.AppCompat.Light.NoActionBar
- Verify your versions in your
flutter/android/app/build.gradle
andflutter/android/build.gradle
and it should work.
Answered By – Da2ny
This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0