Skip to content
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

Strange "Could not get unknown property 'projectConfiguration' for DefaultProjectDependency" error in multi-project in gradle 4.1 #2936

Closed
leiwei2094 opened this issue Sep 13, 2017 · 5 comments

Comments

@leiwei2094
Copy link

I have a project contains two modules, api and service.
The service depends on the api module.
dependencies { compile project(':api') }
But I get below warning:
Could not get unknown property 'projectConfiguration' for DefaultProjectDependency
And the service module can not access the classes in api.

The Gradle version is 4.1. And I also test the Gradle 2.14.1. It works fine in Gradle 2.14.1.

@oehme
Copy link
Contributor

oehme commented Sep 13, 2017

From the provided information I can only assume you are trying to import a new Gradle project into an older version of IntelliJ IDEA. Please upgrade to the latest version.

If that doesn't fix the issue, please provide a reproducible example project and instructions how to reproduce the problem.

@leiwei2094
Copy link
Author

Thanks, oehme, you are right. I update the IDEA to latest version, and it works fine now. Thanks a lot.

@cbigbird
Copy link

Thanks @oehme @vangoleo , I had the same problem too.

@wajiii
Copy link

wajiii commented Jun 16, 2018

I am having this problem right now! Specifically, I am getting "Could not get unknown property '[redacted]' for task '[redacted]' of type org.gradle.api.tasks.testing.Test" -- but only in IDEA; this issue does not occur when I run gradle outside of the IDE, on the command line. This is really hurting me because it completely blocks my ability to live-debug my code!
I have tried running gradle clean, both inside and outside the IDE; restarting IDEA(either normally, or using the menu item "Invalidate Caches / Restart"), and even tried to rm -rf my project's .gradle directory.
Unfortunately, my IDE does not indicate any updates currently available(I am on 2017.2.4, "Build #IU-172.4155.36, Built on September 11, 2017"), so I cannot benefit from the previously mentioned "solutions" (nor do I have any other known recourse)! 😞 👎

@oehme
Copy link
Contributor

oehme commented Jun 16, 2018

That's a completely different problem. Please open a bug report including a reproducible example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants