-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
dependencyCheckAnalyze fails in Android project with more than one modules #71
Comments
Thanks for the bug report. I will try to look at this in the next two weeks. |
Any updates? |
We're also facing this issue. Is there anything we can do to help? |
Hope it will be fixed soon. |
My workaround for this issue: |
https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html#variant_dependencies I am facing this kind of errors if I add configuration: |
All - I'm still researching this. Unfortunately, I am not seeing a quick fix. |
I've looked at several other plugins that deal with project dependencies and I have not yet found a solution. Most other plugins obtain the |
I just found the solution to the problem. See https://stackoverflow.com/a/44207419/1995422 In the sample project's app/gradle.build#L24 change implementation project(':mylibrary') To implementation project(path: ':mylibrary', configuration: 'default') Explicitly setting the configuration on the project reference resolves the error. Additional enhancements are being made to better support Android AAR dependencies. |
I should point out that the solution to this (which I outlined above) was previously provided #71 (comment) - I wanted to exhaust some avenues of research before finalizing this as the best answer. I believe there might be an underlying issue between gradle and the android sdk that causes this problem as @andyhermann pointed out - this does cause an issue in android studio. |
I did open a ticket with gradle (gradle/gradle#5953) to see if they believe there is an underlying issue. |
I had a quick look at the change your are proposing. It seems to resolve the errors you get when running the dependencyCheckAnalyze. However, as others have pointed out, if you attempt to sync the project in Android Studio (used 3.2-beta3), it fails. On the sample project though, simply building the application (e.g. After trying the same workaround in a more complex project with multiple modules, and many dependencies, I could not get the |
The ticket with the gradle team pointed me in a different direction (see gradle/gradle#5953 (comment)). I am still trying to fully understand some of the new/incubating APIs but hope to have something soon. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
After updating an Android application to Gradle 4.1, the dependencyCheckAnalyze task has started failing. It appears that it is unable to handle multiple modules. I have created a sample app that demonstrates the problem: https://github.com/gmetal/sample-dependency-check-app
If you run the dependencyCheckAnalyze task, you'll see something like the following:
The text was updated successfully, but these errors were encountered: