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

dependencyCheckAnalyze fails with layered modules #94

Closed
mt-mitchell opened this issue Aug 8, 2018 · 1 comment
Closed

dependencyCheckAnalyze fails with layered modules #94

mt-mitchell opened this issue Aug 8, 2018 · 1 comment

Comments

@mt-mitchell
Copy link

If you have layered modules with version 3.3.1, you still get the `Could not resolve all artifacts for configuration ' error.

I forked the #71 sample project https://github.com/mt-mitchell/sample-dependency-check-app

I tried with and without productFlavors and the result is the same.

Execution failed for task ':mylibrary:dependencyCheckAnalyze'.
> Could not resolve all artifacts for configuration ':mylibrary:archives'.
   > Could not resolve project :mylibraryTransitive.
     Required by:
         project :mylibrary
      > Cannot choose between the following configurations of project :mylibraryTransitive:
          - debugApiElements
          - debugRuntimeElements
          - releaseApiElements
          - releaseRuntimeElements
        All of them match the consumer attributes:
          - Configuration 'debugApiElements':
              - Found com.android.build.api.attributes.BuildTypeAttr 'debug' but wasn't required.
              - Found com.android.build.api.attributes.VariantAttr 'debug' but wasn't required.
              - Found com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' but wasn't required.
              - Found org.gradle.usage 'java-api' but wasn't required.
          - Configuration 'debugRuntimeElements':
              - Found com.android.build.api.attributes.BuildTypeAttr 'debug' but wasn't required.
              - Found com.android.build.api.attributes.VariantAttr 'debug' but wasn't required.
              - Found com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' but wasn't required.
              - Found org.gradle.usage 'java-runtime' but wasn't required.
          - Configuration 'releaseApiElements':
              - Found com.android.build.api.attributes.BuildTypeAttr 'release' but wasn't required.
              - Found com.android.build.api.attributes.VariantAttr 'release' but wasn't required.
              - Found com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' but wasn't required.
              - Found org.gradle.usage 'java-api' but wasn't required.
          - Configuration 'releaseRuntimeElements':
              - Found com.android.build.api.attributes.BuildTypeAttr 'release' but wasn't required.
              - Found com.android.build.api.attributes.VariantAttr 'release' but wasn't required.
              - Found com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' but wasn't required.
              - Found org.gradle.usage 'java-runtime' but wasn't required.
@lock
Copy link

lock bot commented Oct 16, 2018

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.

@lock lock bot locked and limited conversation to collaborators Oct 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants