Nayeem Ur Rehman
Nayeem Ur Rehman

Reputation: 39

Resolving configuration 'debugCompile' directly is not allowed

FAILURE: Build failed with an exception.

BUILD FAILED in 0s

Upvotes: 3

Views: 8821

Answers (2)

LIFFE
LIFFE

Reputation: 91

Try it, it works for me.

project.configurations.debugCompile.setCanBeResolved(true)
project.configurations.debugCompile.each {
    println it
}

Upvotes: 9

Wilson Chen
Wilson Chen

Reputation: 526

Can you try this: https://github.com/google/protobuf-gradle-plugin/issues/129 Upgrade your protobuf to 0.8.2 or later and have a try? It could be caused by the Gradle 3.0 compatible issue. I run into the same problem but I resolved by downgraded the gradle to 2.6.

Upvotes: 3

Related Questions