Why hasn't a hilt option been added to the project...
# android-studio
b
Why hasn't a hilt option been added to the project wizard? It should create the Application class, create a basic empty Singleton module and most of all setup the 🗯️ gradle script file. Why is it sometimes (using canary) when I hit the run button it doesn't actually build or if it does it doesn't deploy the new code?
c
Why hasn’t a hilt option been added to the project wizard?
It’s been considered but we’ve strived to keep our project templates simple for getting started. And not everyone uses Hilt for dependency injection. Or uses dependency injection to begin with.
This is a template off of GitHub though that might be more useful for your usecase: https://github.com/android/architecture-templates
if it does it doesn’t deploy the new code?
Not sure, we would have to have a repro to really know. One thing we’ve seen is sometimes the deployment optimizations from Android 11+ can impact the build deployed, so you can opt-in into disabling that optimization
b
templates look good except they use kapt sad panda
It’s been considered but we’ve strived to keep our project templates simple for getting started. And not everyone uses Hilt for dependency injection. Or uses dependency injection to begin with.
Add it as a checkbox on the 2nd wizard screen.