Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Where should I add e.g. Hilt Android and AndroidX Navigation Safe Args Gradle Plugins?

See original GitHub issue

Should I add them inside buildSrc folder?

plugins {

repositories {

dependencies {
    implementation(group = "", name = "gradle", version = "7.0.1")
    implementation(kotlin(module = "gradle-plugin", version = "1.5.30"))
    implementation(group = "", name = "hilt-android-gradle-plugin", version = "2.38.1")
    implementation(group = "androidx.navigation", name = "navigation-safe-args-gradle-plugin", version = "2.3.5")


Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

cortinicocommented, Sep 4, 2021

You can always overcome the lack of a plugin marker by specifying a custom resolution strategy. That’s actually what this template was doing long before this issue was fixed for AGP:

VincentJoshuaETcommented, Sep 7, 2021

Originally I had those in the buildscript block in the root directory build.gradle.kts, but I didn’t know where to move them hence this post.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Navigation | Android Developers
To add a dependency on Navigation, you must add the Google Maven repository to your project. Read Google's Maven repository for more information ......
Read more >
Plugin with id 'androidx.navigation.safeargs' not found
You can use dependencies as below in Project level bulild.gradle in Android Studio bumblebee id 'androidx.
Read more >
Support fromSavedStateHandle in SafeArgs [136967621]
I am using Safe Args from Navigation and also using SavedStateHandle to pass in arguments from the args bundle to my ViewModel. This...
Read more >
androidx.navigation:navigation-safe-args-gradle-plugin. Official Description: Android Navigation TypeSafe Arguments Gradle Plugin ...
Read more >
Gradle Build Setup - Dagger
Apply Hilt Gradle Plugin with Plugins DSL ... then apply the plugin in the build.gradle of your Android Gradle modules: plugins { //...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found