1

mipmap file color red

I added a new version (mipmap-xxxhdpi) in my old project. But the file is coming in red color and also one more file ic_launcher-web.png got generated.

Can you explain why this things happens and how resolve them?

adarsh
  • 348
  • 1
  • 4
  • 17

3 Answers3

1

If it is red, it means it is not under version control (was not yet added).

You should right click the file > Subversion / Git > Add to VCS.

The ic_launcher-web.png one, is meant to be used for when you publish to Google Play, you can easily delete it for now.

Marko
  • 20,385
  • 13
  • 48
  • 64
0

Your project is under source control (git?). Red files are files not added to the repository yet. To fix it you need to add file: git add in the console or similar command in the Android Studio GUI.

ic_launcher-web.png is icon with size 512x512. It should be used when you publish your app in the Play Store.

Sergey Glotov
  • 20,200
  • 11
  • 84
  • 98
0

@adarsh : Actually your project is connected to github repository .

Red means the branch is behind its remote

CLICK Click CNTRL+SHIPT+A ON THIS IMAGE

You should add and comment like this way

  prompt> git add some-file
  prompt> git commit -m "Your Comments"

Or you can Click VCS->GIT->PUSH

ic_launcher-web.png This is the icon for the google play store. You need to provide a 512 x 512 icon. SO

Community
  • 1
  • 1
IntelliJ Amiya
  • 74,896
  • 15
  • 165
  • 198