title: Gradle 7.0 Lint Error when using local custom view library
body: <p>I am using a custom view library and add it as one of the project's module. Everything works fine and it is running, however when I tried to run <code>gradlew lint</code> the it fails with the message</p>
  <pre><code>C:\Users\USERNAME\Desktop\Projects\Android\Personal Product\App\app\src\main\res\layout\activity_main.xml:62 Error: Class referenced in the layout file, com.library.custom.view, was not found in the project or the libraries [MissingClass]
          &lt;com.library.custom.view
  </code></pre>
  <p>The lint until now seems not able to properly recognize a local library. Is there any fix on this without using</p>
  <pre><code>android {
                 lintOptions {
                     abortOnError false
                 }
             }
  </code></pre>