Is there a way to remove all unused field declarations automatically in Android Studio/Intellij ?
Select Analyze > Run Inspection by Name..., type unused declaration and confirm with Enter. When the search is finished, select Unused declaration from the result tab, right click and select Safe delete:
Analyze > Run Inspection by Name...
unused declaration
Unused declaration
Safe delete