Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

drawable/ic_launcher_foreground not found. How to find that xml file

Gradle build is not successful because it cannot find ic_launcher_foreground.xml in drawable.

Here are the error messages

Actual error occured in this file

like image 414
Thrinadh Reddy Avatar asked Mar 22 '18 04:03

Thrinadh Reddy


People also ask

What is XML drawable?

A drawable resource is a general concept for a graphic that can be drawn to the screen and which you can retrieve with APIs such as getDrawable(int) or apply to another XML resource with attributes such as android:drawable and android:icon . There are several different types of drawables: Bitmap File.

How do I add an image to a drawable XML file?

Step 1: In this method first of all in your system find your required images and copy the image as we do normally. Step 2: Then open the Android Studio go to the app > res > drawable > right-click > Paste as shown in the below figure. Step 3: Then a pop-up screen will arise like below.

How do you install Drawables?

Drag and drop your images directly onto the Resource Manager window in Android Studio. Alternatively, you can click the plus icon (+), choose Import Drawables, as shown in figure 3, and then select the files and folders that you want to import. Figure 3: Select Import Drawables from the dropdown menu.


1 Answers

I solved it by deleting the project's Mipmap folders and creating the icon again by right clicking on the res / folder

like image 69
Alessandro Krasota Avatar answered Sep 18 '22 06:09

Alessandro Krasota