How to fix the error: “resource mipmap/ic_launcher (aka com.example.MyAppName: mipmap/ic_launcher) not found.” on vs code
How to fix the error: “resource mipmap/ic_launcher (aka com.example.MyAppName: mipmap/ic_launcher) not found.” on vs code
Error:
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Errors limit exceeded. To receive all errors set com.sun.xml.bind logger to FINEST level.
Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
![](https://www.bestdevops.com/wp-content/uploads/2023/07/tempsnip-1024x386.png)
Solution
Step 1 Go to C:\Users\dharm\AndroidStudioProjects\mhn_app_hospital\android\app\src\main\res
Check mipmap-hdpi folder side image name
![](https://www.bestdevops.com/wp-content/uploads/2023/07/tempsnip-1-1024x375.png)
Check this image’s name
![](https://www.bestdevops.com/wp-content/uploads/2023/07/Capture-1024x219.jpg)
Step 2
Go To pubspec.yaml
![](https://www.bestdevops.com/wp-content/uploads/2023/07/tempsnip-3-1024x918.png)
android: "ic_launcher"