title: Could not find method File() for arguments
body: <p>I'm having this error while running my flutter app, there is something wrong with my settings.gradle file.</p>
  <p>My android sdk location:&quot;F:\AndroidSdk&quot;
  My flutter sdk location:&quot;F:\FlutterSdk&quot;</p>
  <pre><code>...................ERROR.......................
  FAILURE: Build failed with an exception.
  
  * Where:
  Settings file 'E:\rider_app-master\android\settings.gradle' line: 3
  
  * What went wrong:
  A problem occurred evaluating settings 'android'.
  &gt; Could not find method File() for arguments [E:\rider_app-master\android, local.properties] on settings 'android' of type org.gradle.initialization.DefaultSettings.
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  
  * Get more help at https://help.gradle.org
  
  BUILD FAILED in 20s
  Exception: Gradle task assembleDebug failed with exit code 1
  </code></pre>
  <p>My setting.gradle file (there is no error but still can't run my app)</p>
  <pre><code>include ':app'
  
  def localPropertiesFile =  File(rootProject.projectDir, &quot;local.properties&quot;)
  def properties =  Properties()
  
  assert localPropertiesFile.exists()
  localPropertiesFile.withReader(&quot;UTF-8&quot;) { reader -&gt; properties.load(reader) }
  
  def flutterSdkPath = properties.getProperty(&quot;flutter.sdk&quot;)
  assert flutterSdkPath != null, &quot;flutter.sdk not set in local.properties&quot;
  apply from: &quot;$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle&quot;
  </code></pre>