-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where should I add e.g. Hilt Android and AndroidX Navigation Safe Args Gradle Plugins? #48
Comments
AGP and Kotlin bump, you can do them if you wish. As for hilt and safe-args, I won't add them for now. |
Where do you suggest I add them? I can't use the new plugins block with them |
Why not? |
https://docs.gradle.org/current/userguide/plugins.html#sec:plugin_markers https://issuetracker.google.com/issues/64551265 Google's fault Fixed for the AGP, but not for Navigation or Dagger Hilt |
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: kotlin-android-template/settings.gradle.kts Lines 2 to 11 in d66f855
|
Does not seem to work for Hilt:
|
You're missing the necessary dependencies in order to make Hilt work: |
I have those already. I dont have this issue if I use the code in my original post. |
Don't you mind sharing your project and/or your |
I cannot post the whole files, but here are the important ones. I omitted the unrelated dependencies. This is working as expected. Once I implement the logic in pluginManagement and remove the Hilt and AndroidX Navigation Safe Args plugins from build.gradle.kts:
buildSrc/build.gradle.kts
app/build.gradle.kts
|
Seems like you're using precompiled script plugins right? How comes you have those |
Originally I had those in the buildscript block in the root directory |
Has this been resolved? |
Should I add them inside buildSrc folder?
Thanks
The text was updated successfully, but these errors were encountered: