fluttercommunity / community

Flutter Community - A central place for community made Flutter content.
1.58k stars 121 forks source link

Discussion: launcher icons won't be built for android #100

Closed b-codex closed 2 years ago

b-codex commented 2 years ago

Discussion: launcher icons won't be built for android

This issue has been made to discuss launcher icons won't be built for android

Summary

i am trying to build launcher icons for my flutter project and i'm getting some errors and i dont know how to deal with them

sdk versions are as follows image image image

pubspec.yaml config is as follows image

the error is as follows

image

how can i fix this error?

b-codex commented 2 years ago

I found the solution as soon as i posted this. I'm working with flutter just in case it doesn't work with other languages.

What you need to do is change the values of the following to an integer

compileSdkVersion 31

minSdkVersion 21 targetSdkVersion 29

this solved it for me.