0

I'm trying to create an assets folder in android studio but the option is grayed out! [1]: https://i.sstatic.net/kbLO4.png

3 Answers 3

3

you have set your minSdkVersion to less than 16 in build.gradle (:app) go and search minSdkVersion and set it to minimum 16 I suggest set 21

defaultConfig { minSdkVersion 21 } 
Sign up to request clarification or add additional context in comments.

Comments

0

You can directly create assets folder res right click and select asset folder i am create easy to create asset folder

Comments

0

Just create a new directory on the same level as your pubspec.yaml file and add the following code to your pubspec.yaml:

flutter: assets: <---- add this - assets/ <---- add this # The following line ensures that the Material Icons font is # included with your application, so that you can use the icons in # the material Icons class. uses-material-design: true 

In my case I named the directory "assets". Your project structure should now look something like this:

├──android | ├──assets | ├──lib | └──pubspec.yaml 

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.