我正在开发应用程序,但是在我所有的项目中都发生了错误,即使我刚刚开始,该错误已经存在,它们不会影响编译,但是恐怕它们是将来的问题! 有人可以帮我纠正吗?
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))
}