Unresolved reference for synthetic view when layout is in library module
Update: Synthetic view references have been deprecated and will not be supported in the future. The current recommended solution is to use ViewBinding (or wait for Jetpack Compose) Original Answer: One way to solve this is to create an “alias” property that can be consumed from other modules: // SyntheticExports.kt package com.example.synthetic.exported import kotlinx.android.synthetic.main.layout_in_library.* inline … Read more