---
title: "Discussion on \"Mastering Hilt - Android | Kotlin | Hilt (Dagger 2) [Part 7]\" | Hashnode"
description: "Discussion on \"Mastering Hilt - Android | Kotlin | Hilt (Dagger 2) [Part 7]\". Becoming Proficient in Dependency Injection with Hilt for Android (Kotlin)"
url: "https://hashnode.com/posts/mastering-hilt-android-kotlin-hilt-dagger-2-part-7/6526d1560af43f117acf612c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Mastering Hilt - Android | Kotlin | Hilt (Dagger 2) \[Part 7\]](https://rommansabbir.com/mastering-hilt-android-kotlin-hilt-dagger-2-part-7?utm_source=hashnode&utm_medium=feed)

Becoming Proficient in Dependency Injection with Hilt for Android (Kotlin)

Oct 11, 2023 · 2 min read · rommansabbir.com  
Read the article

-   [#android](https://hashnode.com/tag/android)
-   [#android-app-development](https://hashnode.com/tag/android-app-development)
-   [#kotlin](https://hashnode.com/tag/kotlin)
-   [#dagger-hilt](https://hashnode.com/tag/dagger-hilt)
-   [#dependency-injection](https://hashnode.com/tag/dependency-injection)

## Written by

[Romman Sabbir](https://hashnode.com/@rommansabbir)

@rommansabbir · Dhaka, Bangladesh

  
[View profile](https://hashnode.com/@rommansabbir)

An engineer with extensive Android experience | Kotlin, Spring Boot, Compose, Swift, Swift UI

Senior Android Engineer from Bangladesh. Love to contribute in Open-Source. Indie Music Producer.

## Responses 1

Markdown supported · ⌘↵ to post

[alicia beltran](https://hashnode.com/@aliceresponde)

[Dec 2, 2023](https://hashnode.com/posts/mastering-hilt-android-kotlin-hilt-dagger-2-part-7/6526d1560af43f117acf612c/comment/656a796e9475ae5ae8b4ccbf)

Hi, thanks for your sample, and explanatio. I want to know where should be defined those new annotations? inside the same module where it can be used?

[Romman Sabbir](https://hashnode.com/@rommansabbir)

[Dec 2, 2023](https://hashnode.com/posts/mastering-hilt-android-kotlin-hilt-dagger-2-part-7/6526d1560af43f117acf612c/comment/656a796e9475ae5ae8b4ccbf#reply-656b033903318819fa3369b6)

You can place the code in a Kotlin Class/File under the same package. Just make sure the new annotations is accessible.
