https://kotlinlang.org logo
Title
d

Davide Giuseppe Farella

12/15/2020, 6:57 AM
Hello, getting this exception just now on
Gradle [6.7.1-all] -> [6.8-rc-1-all]
( Kotlin multiplatform )
A problem occurred configuring project ‘:database’.
> Configuration with name ‘testApi’ not found.
* Exception is:
org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ‘:database’.
at …
Any clue?
👀 1
v

Vampire

12/15/2020, 7:34 AM
Please do not crop the error
d

Davide Giuseppe Farella

12/15/2020, 7:46 AM
here it is
d

Davide Giuseppe Farella

12/15/2020, 9:55 AM
Thank you, I’ll keep an eye
👍 1
r

rsktash

12/15/2020, 11:00 AM
The same issue
😕 1
k

kenkyee

12/15/2020, 1:22 PM
Use testImplementation. testApi made no sense so it was removed.
v

Vampire

12/15/2020, 3:12 PM
The question is whether he used it, or whether some plugin he uses used it. And besides that, this is a breaking change, so shouldn't be in a minor version of Gradle.
👍 1
@kenkyee can you tell who removed it? Gradle core never had
testApi
according to Gradle engineers.
j

Javier

12/15/2020, 5:04 PM
@Vampire I think it is caused by AGP 7.0.0-alpha03
In alpha versions they can add breaking changes
And it will be a breaking change from 4.2 stable to 7.0 when it reaches the stable state
☝️ 1
v

Vampire

12/15/2020, 5:06 PM
Yeah, sure, I thought you mean in Gradle 6.8 and there it would have been a bug, as OP just said he updated Gradle, not AGP.
👍 1