Dilraj Singh
04/29/2022, 7:55 PMonVariants
API, but it is not working, throwing groovy.lang.MissingMethodException
. The below snippet contains the code which I have added to my app/build.gradle
-
plugins {
//...
}
android {
//...
}
androidComponents {
onVariants { variant ->
}
}
Dilraj Singh
04/29/2022, 7:56 PMChris Lee
04/29/2022, 9:28 PMtseisel
04/29/2022, 10:27 PMonVariant
API has been added recently in the Android Gradle Plugin. Check that you are using AGP version 7.0.0 or newer.