Open CMingTseng opened 2 years ago
Can you provide a sample project where error reproduce ? Because code on you link doesn't contains any modification to be a library(or I can't find). I use epoxy in libraries modules with butterknife and it works fine.
Have same issue after upgrade libs (AGP / gradle /kotlin)
com-airbnb-android-epoxy = "5.1.1"
Upgraded to Android Studio Flamingo | 2022.2.1 Beta 2 AGP: "8.0.0-beta02" Gradle / gradle wrapper: gradle-8.0-rc-3-all
Android studio show in Epoxy model files: An annotation argument must be a compile-time constant
set in gradle.properties: android.nonTransitiveRClass=false
I don't use layout resources in module, it's in app module.
Could help when I will try to replace:
@EpoxyModelClass(layout = R.layout.model_view_search_count)
to
override fun getDefaultLayout(): Int = R.layout.model_view_search_count
in DataBindingEpoxyModel?
It's a huge project, so it will take long time to refactor it, that's why I ask before...
Dear Sir
i ref this to modify subproject : vector (Project : element-android) from applcation to library
https://github.com/vector-im/element-android/blob/develop/vector/build.gradle![image](https://user-images.githubusercontent.com/7948140/171476400-4bb81aa1-a807-483f-a658-54069150e04d.png)
it get "incompatible types cannot be convert to int " @com.airnb.epoxy.EpoxyModelClass(layot=null)
how to fix it ?
THX