How to fix the error: “resource mipmap/ic_launcher (aka com.example.MyAppName: mipmap/ic_launcher) not found.” on vs code

DevOps

MOTOSHARE 🚗🏍️
Turning Idle Vehicles into Shared Rides & Earnings

From Idle to Income. From Parked to Purpose.
Earn by Sharing, Ride by Renting.
Where Owners Earn, Riders Move.
Owners Earn. Riders Move. Motoshare Connects.

With Motoshare, every parked vehicle finds a purpose. Owners earn. Renters ride.
🚀 Everyone wins.

Start Your Journey with Motoshare

I had the same problem, I was importing the icons using:
Android Studio -> new -> ImageAsset -> choose the image

But when saving it, I didn’t notice they gave me 3 options to save: debug, main, or release. I was saving in debug, that’s why when I went to compile, it didn’t search in debug but in main instead.

Solution: Import the icons from the main:
Android Studio -> new -> ImageAsset -> choose the image -> save to main

And go to pubspec.yaml and change name for this

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x