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.")
}
我收到Properties((类和FileNotFoundException的错误。我在尝试更改应用程序Id后出现此错误。如何解决此问题。
android文件夹下应该有一个local.properties
文件。