Context
I am working on a Flutter application and have done all my development in VS Code (my preferred editor). I'm at a point where I need to add vector assets to my project.
Problem
I navigate to the folder in Android Studio my_app/android/app/src/main/res/ or my_app/android/app/src/main/res/drawable and then right-click. I look for the option in the context menu: New > Vector Asset, but it's not there (see image below). This happens at both of the said paths.
What I've tried
- I've tried creating a new asset folder at
my_app/android/app/res/drawableand the option still doesn't not appear in the context menu. - I've looked at this Stack Overflow question, but the accepted solution didn't work (what I tried above). The next suggested solution is to downgrade Android Studio.
- I've tried opening just the
androiddirectory in Android Studio and that didn't work either.
My Questions
Where did the option go?
How do I add a vector asset with having to downgrade Android Studio versions?
