title: Unresolved reference for synthetic view when layout is in library module
body: <p>using Kotlin 1.20.20 (not that it matters, older versions behaves the same)</p>
  
  <p>When layout is in separate library module Android Studio has no problem finding and referencing the view</p>
  
  <p><code>import kotlinx.android.synthetic.main.view_user_input.*</code></p>
  
  <p>But when I try to compile app it fails with <code>Unresolved reference: view_user_input</code> on <code>:app:compileDebugKotlin</code>.</p>
  
  <p>Everything works fine when view is referenced IN the library module.</p>
  
  <p>Am I missing something here?</p>
  
  <p>Adding project structure. All modules are using kotlin and kotlin-extensions.</p>
  
  <pre><code>build.gradle
  app/
    build.gradle //main application
  library-module-a/
    build.gradle //library application
  library-module-b/
    build.gradle //library application
  </code></pre>
  
  <p>Here is an example app <a href="https://github.com/mjurkus/KotlinxTest" rel="noreferrer">https://github.com/mjurkus/KotlinxTest</a></p>
  
  <p>Registered issue for that in <a href="https://youtrack.jetbrains.com/issue/KT-22430" rel="noreferrer">KT tracker</a> </p>