-1

I have a problem with the emulator in android studio. It shows an error in file ic_launcher_round.xml. Saying this file failed to compile and the element must be declared on the xml code.

code in the ic_launcher_round.xml file :

<component name="libraryTable">
    <library name="Gradle: android.arch.lifecycle:livedata-core:1.1.1@aar">
        <CLASSES>
            <root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/29f26e9a69885b61025619da3a205e0c/jars/classes.jar!/" />
            <root url= "file"

Thank you

Here is the xml file

Here is the error statement

Abdeloo07
  • 1
  • 3

1 Answers1

0

you need to 3 file in the res/mipmap with thease names:

   ic_launcher.png
   ic_launcher_foreground.png
   ic_launcher_round.png
Milad Mohamadi
  • 127
  • 1
  • 10
  • This is not exactly correct. The files do not need to be png images. Further, they do not need to be with these names. The names must match what's in the manifest and file type may be any valid drawable resource, including XML. – Aleks G May 23 '19 at 11:28