0

This is what I get when I try to run flutter debug enter image description here

This is the file I don't understand The file where the issue comes from

Knomic
  • 25
  • 1
  • 6
  • Possibly relevant: https://stackoverflow.com/questions/73028977/android-material-design-sample-code-giving-missing-resources-errors - Accepted solution was to update android studio – Michael Horn Oct 06 '22 at 18:32
  • @MichaelHorn I am not using andriod studio for this other apps are working I fear the problem might be with the packages I'm using – Knomic Oct 06 '22 at 19:58
  • You might still try it - at the very least, you can try [updating your android toolchain](https://developer.android.com/studio/intro/update#sdk-manager) – Michael Horn Oct 06 '22 at 20:11
  • @MichaelHorn I updated it and tried to debug directly from Andriod studio same problem. Also the toolchain is up to date – Knomic Oct 06 '22 at 21:45

2 Answers2

0

Change targetSdkVersion in defaultConfig block works for me.

In path: project_folder/android/app/build.gradle

Son Tieu
  • 517
  • 4
  • 15
0

Figured out the issue was from a package I was using (flutter_paystack), checked the GitHub issues and found a solution. https://github.com/wilburt/flutter_paystack/issues/124#issuecomment-1152890758

Knomic
  • 25
  • 1
  • 6