element-hq / element-hq/element-android

Application to library get layout=null !!

Open
#6,192 0 comments 0 reactions 0 assignees View on GitHub
T-Other
Dominant language
Kotlin
Stars
3.7k
Forks
917
PR merge metrics
No merged PRs in 30d

Description

### Your use case

Dear Sir

i try modify vector as library ( change application plugin to library plgin )

i get

"incompatible types cannot be convert to int "
@com.airnb.epoxy.EpoxyModelClass(layot=null)

i google it

https://stackoverflow.com/questions/59843745/epoxymodels-are-not-working-in-feature-modules-library-projects-in-android

https://github.com/airbnb/epoxy/issues/819#issuecomment-576728923

if i do not modify code ( use "override fun getDefaultLayout() " replace annotation )

how to fix it ?

THX

### Have you considered any alternatives?

1. i try epoxy library , add "butterknife" still get null

![image](https://user-images.githubusercontent.com/7948140/171027544-f278f85f-e2c9-470d-83a8-0a6cce876b3f.png)

2. so i must use

https://stackoverflow.com/questions/59843745/epoxymodels-are-not-working-in-feature-modules-library-projects-in-android

modify all View class

override fun getDefaultLayout()

### Additional context

![image](https://user-images.githubusercontent.com/7948140/171028418-b2fb59a8-de6c-4d8d-8fc3-54fe3a7c2f3e.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.