我正在开发应用程序flutter,但是我所有的项目都出现了错误,即使我刚刚开始,错误已经存在,它们不影响编译但我担心它们是未来的问题!有人可以帮我纠正吗?
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 **GradleException**("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
flutterVersionCode = '3001'
def flutterVersionName = localProperties.getProperty('flutter.versionName')
flutterVersionName = '0.0.3'
def keystoreProperties = new **Properties**()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new **FileInputStream**(keystorePropertiesFile))
}