Hi! I think Koin is a great library as well. Use what you think fits better to your project.

There are pros and cons to both libraries:

- With Hilt, you get a better runtime performance and compile-time correctness, scalability and Android Studio support but you give away compile time.

- With Koin, you get a better compile time but you lose what Hilt gives you. As it needs to grab instances from the service locator map, runtime performance is affected (depending on the size of your project). Also, you get rid of annotations related to DI in your project.

Google recommends Hilt for Android apps but that's just a recommendation! Use what you think it's good for you.

Hope that helps! Thank you :)



Android DevRel @ Google

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store