Home > OS >  Android Studio - App folder is marked red although there is no error
Android Studio - App folder is marked red although there is no error

Time:01-07

I have the problem that my app folder in Android Studio is highlighted in red when there is no error and the app perfectly works. I dont know if this is coincidence but I believe the error happened after I importet some .svg files as vector assets.

This is no tragic problem but still annoys me.

red highlighted app folder

Also I cannot hover on that red stripe on the right side.

I browsed through the problem detection tool and got the same result as I suspected. Just Warnings and Typos - no errors.

problem detection

What else have I tried:

  • Sync Project with Gradle Files
  • Invalidate Caches and Restart
  • Repair IDE

Maybe someone knows how to fix it?

CodePudding user response:

Solved:

Just open the menu item "Project" below your Project name (I think it should be Android by default). You can find non-visible folders in that view causing the errors. Just delete them if not needed.

Many Thanks to @JakeLee solving it!

  • Related