inline Resource-id clashes with library modules
When including an Android library as a module in IntelliJ (for example the cardview from the support-library), the following error might occur:
Resource id [hex-id] is not of type [expected-type] (instead [actual-type])
along with this exception at runtime:
android.view.InflateException: Binary XML file line #[line]: Error inflating class [class]
To fix this make sure that the module has the
Library module-checkbox on the top-left in
Project Structure -> Modules -> [Expand Module Name] -> Android is ticked!