Caused By: Groovy.lang.missingpropertyexception: Could Not Get Unknown Property 'android' For

[Solved] Caused By: Groovy.lang.missingpropertyexception: Could Not Get Unknown Property 'android' For | Groovy - Code Explorer | yomemimo.com
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

Answers related to caused by: groovy.lang.missingpropertyexception: could not get unknown property 'android' for project ':app' of type org.gradle.api.project.

Code Explorer Popular Question For Groovy