Reputation: 379
Hello After upgrading Android studio to 3.3.2
, I get this error every time I run the app:
Could not set unknown property 'localProperties' for project ':app' of type org.gradle.api.Project
My build.gradle
:
testInstrumentationRunnerdef localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
Upvotes: 2
Views: 3850
Reputation: 379
I fixed this problem by calling flutter create .
to re-create Android files which resulted in successful building.
Upvotes: 1