Skip to content

Instantly share code, notes, and snippets.

@Nike2406
Created April 8, 2025 09:30
Show Gist options
  • Save Nike2406/4cd10df7fb06a61d2cbdde0efb5d27f8 to your computer and use it in GitHub Desktop.
Save Nike2406/4cd10df7fb06a61d2cbdde0efb5d27f8 to your computer and use it in GitHub Desktop.
Exclude generated Hilt files
1. With your Android Studio open, click on the ‘File’ menu.
2. Then select ‘Settings’.
3. In the ‘Editor’ tab, navigate to ‘File Types’.
4. Within this menu, click on the ‘Ignored Files and Folders’ window.
5. Add this sources.
*DaggerComponent.java
*DaggetModule.java
*Hilt*.java
*GeneratedInjector.java
*_Factory.java
*ViewModel*.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment