Answers for "Could not get unknown property 'android' for project ':app' of type org.gradle.api.Project"

0

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
    }
Posted by: Guest on April-24-2021

Code answers related to "Could not get unknown property 'android' for project ':app' of type org.gradle.api.Project"

Browse Popular Code Answers by Language