Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Red X Mark in android studio application while running

Tags:

java

android

Screenshot

I wish if some one can help me in android studio problem?

I just came up while i was working on my application I have no idea whatsoever since i tried all possible solution that can resolve the issues.

Any help will be much appreciated.

like image 462
Yogesh Pandey Avatar asked Aug 29 '16 01:08

Yogesh Pandey


1 Answers

The red X is there saying you cannot build/run your project because it had an error while indexing your application. Sometimes that error occurs when you open a project. All it needs to do is index your code again. A couple things you can do to fix this:

  1. Go into your gradle file, delete something, and type it back. It will ask you to "Refresh" your project.
  2. You may try Cleaning and Rebuilding your project.
  3. Go to File->Invalidate Caches/Restart... and then click Invalidate and Restart.
  4. Basically, reloading your code should fix this problem. If you can find another way to refresh your project and the above did not work, try that way as well.
like image 59
TheAnonymous010 Avatar answered Oct 19 '22 12:10

TheAnonymous010