在更改build.gradle文件上的applicationId后,我遇到了一个错误


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文件。

最新更新