There are two errors in my Android Studio right now. In the app level build.gradle folder, the line
def localProperties = new Properties()
shows error Cannot Resolve Symbol 'Properties' and on
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.")
}
it says Cannot Resolve Symbol GradleException, What should I do to solve these two errors?