Question : caused by: groovy.lang.missingpropertyexception: could not get unknown property 'android' for project ':app' of type org.gradle.api.project.
Answered by : abdulhakim
project.afterEvaluate { if (project.pluginManager.hasPlugin('com.android.library')) { android.libraryVariants.all { variant -> tasks.create(…) } } else { tasks.create(…) }
}
Source : https://stackoverflow.com/questions/71749252/caused-by-groovy-lang-missingpropertyexception-could-not-get-unknown-property-a | Last Update : Thu, 02 Jun 22