-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Cannot resolve symbol 'de.fayard.*' in Android Studio #392
Comments
Gradle Sync issue? I can't see what would be the problem apart from that. |
I don't think so, had this problem since the beginning and updated AS and Gradle several times in between. I can check with 0.11.0 though Edit: Still happening on AS 2020.3.1 + Gradle 7.1.1 and refreshVersions 0.11.0 |
I can reproduce it. |
Hello, @itsandreramon, did you configure refreshVersions for the https://jmfayard.github.io/refreshVersions/setup/#if-you-use-groovy-dsl-ie-buildgradle-files-not-kts |
@itsandreramon Still waiting for your answer. |
@LouisCAD I configured buildSrc and it works now. However, I think the docs should be more clear, that you should configure buildSrc as well. The docs currently only say: "Auto-completion for dependency notations won’t work out of the box." In my case, I am not using auto-completion because I use version catalogs and the statement above makes it seem optional. Anyways, thank you for the help and the project! |
Gotcha, I'll consider updating the docs to reflect that, thanks for the update, glad it's now working on your end. We are also considering automatically configuring buildSrc BTW. |
Thanks for the tips. This has been annoying me for a long time. By the way, I found I had to just include the following code in
I'm just pointing this out as the URL you linked to @LouisCAD suggested the following:
I wanted to avoid stipulating the version number here in |
@taylors1512 Is Gradle sync working with that in IntelliJ IDEA? |
@taylors1512 @LouisCAD does not work on my end |
That's what I expected, and that's why refreshVersions docs show to specify the version for the buildSrc as well. If you don't, when Gradle sync tries to run the buildSrc in standalone mode, it can't find the version and fails. |
Reopening as a reminder to alert users with an error message when buildSrc is not set up but Groovy DSL is used. |
sorry, just saw your question @LouisCAD. Actually, yes, correct, my method isn't working - i.e. stipulating the plugin without the version number. Maybe last time I did it the official way, and then by accident it worked when I tried after without the version number? Cheers for the tips again and clarification. |
I think the documentation is fine? |
@jmfayard Did you skip my last comment about why I re-opened this issue? |
Seen it now. I think it's best for this kind of issues to document it better first. Added it in https://github.com/jmfayard/refreshVersions/wiki/Troubleshooting |
See #609 |
#609 doesn't really seem compatible with the issues we talked about in the last comments. Re-opening again so we don't forget, because better late than never. |
When using this plugin, the versionFor method import gets marked as an error by the IDE because the de namespace cannot be resolved. The plugin works as expected, however.
I am using version 0.10.1
This is how it looks:
![Screenshot 2021-07-19 at 17 22 08](https://user-images.githubusercontent.com/17139385/126184859-df9b59ea-4a80-4f8d-8e2e-5372cef3d3c5.png)
The text was updated successfully, but these errors were encountered: