title: Execution failed for task ':fluttertoast:compileDebugKotlin'
body: <ol>
  <li>I tried <code>flutter clean</code></li>
  <li><code>flutter pub cache repair</code>,</li>
  <li>changing and versions of the fluttertoast package, and by removing it too,</li>
  <li>deleted the <em>android/.gradle</em> directory and rebuilt.</li>
  </ol>
  <p>Nothing worked.</p>
  <pre class="lang-none prettyprint-override"><code>Launching lib\main.dart on Redmi Note 4 in debug mode...
  lib\main.dart:1
  Parameter format not correct -
  e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\fluttertoast-7.1.8\android\src\main\kotlin\io\github\ponnamkarthik\toast\fluttertoast\MethodCallHandlerImpl.kt: (45, 84): Unresolved reference: R
  e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\fluttertoast-7.1.8\android\src\main\kotlin\io\github\ponnamkarthik\toast\fluttertoast\MethodCallHandlerImpl.kt: (70, 68): Unresolved reference: R
  e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\fluttertoast-7.1.8\android\src\main\kotlin\io\github\ponnamkarthik\toast\fluttertoast\MethodCallHandlerImpl.kt: (85, 64): Unresolved reference: R
  2
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  Execution failed for task ':fluttertoast:compileDebugKotlin'.
  &gt; Compilation error. See log for more details
  
  * 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 39s
  Exception: Gradle task assembleDebug failed with exit code 1
  Exited (sigterm)
  </code></pre>