java.lang.IllegalStateException: Resolving configuration 'apiElementsCopy' directly is not allowed

GitHub | jochenberger | 4 weeks ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Lots of java.lang.IllegalStateExceptions logged with Gradle 3.4-rc-1

    GitHub | 4 weeks ago | jochenberger
    java.lang.IllegalStateException: Resolving configuration 'apiElementsCopy' directly is not allowed
  2. 0

    Gradle 3.4-rc-1: "Resolving configuration 'apiElements' directly is not allowed"

    GitHub | 3 weeks ago | juergenzimmermann
    org.gradle.internal.buildevents.BuildExceptionReporter
  3. 0

    GitHub comment 41#21727981

    GitHub | 4 years ago | thejuan
    org.gradle.BuildExceptionReporter
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Plugin doesn't work with Gradle 2.2.1

    GitHub | 2 years ago | tbroyer
    org.gradle.listener.ListenerNotificationException: Failed to notify dependency resolution listener.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Resolving configuration 'apiElementsCopy' directly is not allowed

      at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.assertResolvingAllowed()
    2. Gradle Core
      DefaultConfiguration_Decorated.getResolvedConfiguration
      1. org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.assertResolvingAllowed(DefaultConfiguration.java:818)
      2. org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.resolveToStateOrLater(DefaultConfiguration.java:419)
      3. org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.getResolvedConfiguration(DefaultConfiguration.java:414)
      4. org.gradle.api.internal.artifacts.configurations.DefaultConfiguration_Decorated.getResolvedConfiguration(Unknown Source)
      4 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:498)
      3 frames
    4. Groovy
      MetaBeanProperty.getProperty
      1. org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
      2. groovy.lang.MetaBeanProperty.getProperty(MetaBeanProperty.java:62)
      2 frames
    5. org.gradle.internal
      AbstractDynamicObject.getProperty
      1. org.gradle.internal.metaobject.BeanDynamicObject$MetaClassAdapter.getProperty(BeanDynamicObject.java:213)
      2. org.gradle.internal.metaobject.BeanDynamicObject.getProperty(BeanDynamicObject.java:156)
      3. org.gradle.internal.metaobject.CompositeDynamicObject.getProperty(CompositeDynamicObject.java:55)
      4. org.gradle.internal.metaobject.AbstractDynamicObject.getProperty(AbstractDynamicObject.java:60)
      4 frames
    6. Gradle Core
      DefaultConfiguration_Decorated.getProperty
      1. org.gradle.api.internal.artifacts.configurations.DefaultConfiguration_Decorated.getProperty(Unknown Source)
      1 frame
    7. Groovy
      AbstractCallSite.callGetProperty
      1. org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:50)
      2. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:296)
      2 frames
    8. com.github.benmanes
      DependencyUpdates$_run_closure2$_closure8.doCall
      1. com.github.benmanes.gradle.versions.updates.Resolver.resolve(Resolver.groovy:64)
      2. com.github.benmanes.gradle.versions.updates.Resolver$resolve.call(Unknown Source)
      3. com.github.benmanes.gradle.versions.updates.DependencyUpdates$_run_closure2$_closure8.doCall(DependencyUpdates.groovy:60)[...]
      3 frames