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:
fun CommonExtension<*, *, *, *>.defaultConfig() {...}
Error:
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.
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!