title: Gradle Error: Build failed with an exception, a problem occured while configuring project ':Demo'
body: <p>While adding a project as a module</p>
  <p><strong>What went wrong:</strong>
  It is too late to modify excludes
  It has already been read to configure the project.</p>
  <p>Consider either moving this call to be during evaluation, are using the variant API.</p>
  <p><strong>Steps followed:</strong> File -&gt; Import module -&gt; selec project file</p>
  <p><a href="https://i.stack.imgur.com/OKp9A.jpg" rel="nofollow noreferrer">Gradle Failed Exception</a></p>