Hello! :wave: I’m trying to update my project to A...
# gradle
e
Hello! 👋 I’m trying to update my project to AGP 8.1.0 and I’m facing an issue with my extension function for
CommonExtension
: Code:
Copy code
fun CommonExtension<*, *, *, *>.defaultConfig() {...}
Error:
Copy code
5 type arguments expected for interface CommonExtension<BuildFeaturesT : BuildFeatures, BuildTypeT : BuildType, DefaultConfigT : DefaultConfig, ProductFlavorT : ProductFlavor, AndroidResourcesT : AndroidResources>
I tried something to type them, but then the call fails saying that it doesn’t have enough information to infer the type.
Copy code
fun <BF : BuildFeatures, BT : BuildType, DC : DefaultConfig, PF : ProductFlavor> CommonExtension<BF, BT, DC, PF>.defaultConfig() {
Does anybody else has faced this and knows how to update it? Thanks a lot in advance!
e
Add one more
*
?
Copy code
fun CommonExtension<*, *, *, *, *>.defaultConfig() {...}
Just saw that it was answered in the channel
236 Views