Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by jochenberger
, 1 year ago
Resolving configuration 'apiElementsCopy' directly is not allowed
via Stack Overflow by Michele Lacorte
, 11 months ago
Resolving configuration 'debugCompile' directly is not allowed
via GitHub by pratikpparikh
, 2 months ago
Resolving configuration 'implementation' directly is not allowed
via GitHub by jonnyzzz
, 2 months ago
Resolving configuration 'implementation' directly is not allowed
via GitHub by aley2003
, 1 year ago
Resolving configuration 'apiElements' directly is not allowed
via GitHub by iLavryk
, 1 year ago
Resolving configuration 'apiElements' directly is not allowed
java.lang.IllegalStateException: Resolving configuration 'apiElementsCopy' directly is not allowed	at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.assertResolvingAllowed(DefaultConfiguration.java:818)	at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.resolveToStateOrLater(DefaultConfiguration.java:419)	at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.getResolvedConfiguration(DefaultConfiguration.java:414)	at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration_Decorated.getResolvedConfiguration(Unknown Source)	at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)	at groovy.lang.MetaBeanProperty.getProperty(MetaBeanProperty.java:62)	at org.gradle.internal.metaobject.BeanDynamicObject$MetaClassAdapter.getProperty(BeanDynamicObject.java:213)	at org.gradle.internal.metaobject.BeanDynamicObject.getProperty(BeanDynamicObject.java:156)	at org.gradle.internal.metaobject.CompositeDynamicObject.getProperty(CompositeDynamicObject.java:55)	at org.gradle.internal.metaobject.AbstractDynamicObject.getProperty(AbstractDynamicObject.java:60)	at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration_Decorated.getProperty(Unknown Source)	at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:50)	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:296)	at com.github.benmanes.gradle.versions.updates.Resolver.resolve(Resolver.groovy:64)	at com.github.benmanes.gradle.versions.updates.Resolver$resolve.call(Unknown Source)	at com.github.benmanes.gradle.versions.updates.DependencyUpdates$_run_closure2$_closure8.doCall(DependencyUpdates.groovy:60)