MvpApp icon indicating copy to clipboard operation
MvpApp copied to clipboard

Error

Open darkrevier opened this issue 6 years ago • 1 comments

Error:Cannot choose between the following configurations of project :RecyclerViewHelper:

  • 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.gradle.internal.dependency.AndroidTypeAttr 'Aar' but wasn't required.
    • Found com.android.build.gradle.internal.dependency.VariantAttr 'debug' but wasn't required.
    • Found org.gradle.api.attributes.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.gradle.internal.dependency.AndroidTypeAttr 'Aar' but wasn't required.
    • Found com.android.build.gradle.internal.dependency.VariantAttr 'debug' but wasn't required.
    • Found org.gradle.api.attributes.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.gradle.internal.dependency.AndroidTypeAttr 'Aar' but wasn't required.
    • Found com.android.build.gradle.internal.dependency.VariantAttr 'release' but wasn't required.
    • Found org.gradle.api.attributes.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.gradle.internal.dependency.AndroidTypeAttr 'Aar' but wasn't required.
    • Found com.android.build.gradle.internal.dependency.VariantAttr 'release' but wasn't required.
    • Found org.gradle.api.attributes.Usage 'java-runtime' but wasn't required.

darkrevier avatar May 24 '18 13:05 darkrevier

This is a problem after Android Studio megrated 3.0. dependencies { // This is the old method and no longer works for local // library modules: // debugCompile project(path: ':foo', configuration: 'debug') // releaseCompile project(path: ':foo', configuration: 'release')

// Instead, simply use the following to take advantage of // variant-aware dependency resolution. You can learn more about // the 'implementation' configuration in the section about // new dependency configurations. implementation project(':foo')

// You can, however, keep using variant-specific configurations when // targeting external dependencies. The following line adds 'app-magic' // as a dependency to only the 'debug' version of your module.

debugImplementation 'com.example.android:app-magic:12.3' }`

Wisdozzh avatar Jul 27 '18 08:07 Wisdozzh