Salimalmughairi
Salimalmughairi

Reputation: 23

I am getting an error after changing the applicationId on my build.gradle file

 def localProperties = new **Properties()**
 def localPropertiesFile = rootProject.file('local.properties')
 if (localPropertiesFile.exists()) {
     localPropertiesFile.withReader('UTF-8') { reader ->
        localProperties.load(reader)
     }
 }

def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
    throw new **FileNotFoundException**("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}

I am getting an error of Properties() class and FileNotFoundException. I got this error after trying to change my application Id. how can I solve this issue.

Upvotes: 1

Views: 127

Answers (1)

Akif
Akif

Reputation: 7650

There should be a local.properties file under the android folder.

Upvotes: 1

Related Questions