airbnb / epoxy

Epoxy is an Android library for building complex screens in a RecyclerView
https://goo.gl/eIK82p
Apache License 2.0
8.46k stars 730 forks source link

Library Projects not work !!?? butterknife not work ? #1296

Open CMingTseng opened 2 years ago

CMingTseng commented 2 years ago

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

it get "incompatible types cannot be convert to int " @com.airnb.epoxy.EpoxyModelClass(layot=null) image how to fix it ?

THX

ardmn commented 1 year 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.

mtrakal commented 1 year ago

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...