Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio: Does not show all errors immediately

I'm coming from Eclipse and I am used to immediate error reporting over the whole project.

Lets say I have this function:

public void test() {
   //Do something
}

and I change it to

public void test(String someString) {
   //Do something
}

Then eclipse would immediately highlight all classes in the project explorer, that call test() without also passing a string.

Android studio does not. It only shows it, when I happen to open such a file. Ofcource, when I compile, I will also get an error, but also only for the first file he tried to compile and failed and not for all.

I am currently in a big refactoring and this is really tedious. Compile - wait - fix one file - start over...

Am I missing someting? Not even Analyze/Inspect code... does the trick.

PS: I'm using Android Studio 2.2.3 with latest updates (24.02.2017)

like image 941
Torge Avatar asked May 22 '26 00:05

Torge


1 Answers

Too late for you by now, but for future reference to yourself:

  • Instead of changing the signature of the method by adding an argument to it "manually", right click on the method, go to Refactor, go to Change Signature, in the Parameters tab click on the plus icon and add the parameter there. Now right click on the method again and select Find Usages. That will show you where you're calling the new refactored method and you can fix your code quickly.

However, to answer your question, you can see where all your errors are. Just go to Build and rebuild your project via Rebuild Project and then go the left hand side of Android Studio and change the project view to Problems

Android Studio Problems

See if that helps

like image 71
Joao Sousa Avatar answered May 23 '26 14:05

Joao Sousa