What went wrong: A problem occurred configuring project ':app'. > Could not get unknown property 'android' for project ':app' of type org.gradle.api.Project. code example
Example: Could not get unknown property 'android' for project ':app' of type org.gradle.api.Project
// fix
if (findProject('..:app') != null && project('..:app').hasProperty('android')) {
applicationId = project('..:app').android.defaultConfig.applicationId
} else if (findProject(':app') != null && project(':app').hasProperty('android')) {
applicationId = project(':app').android.defaultConfig.applicationId
}