epoxy icon indicating copy to clipboard operation
epoxy copied to clipboard

Library Projects not work !!?? butterknife not work ?

Open CMingTseng opened this issue 3 years ago • 2 comments
trafficstars

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

CMingTseng avatar Jun 01 '22 18:06 CMingTseng

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.

ardmn avatar Jul 24 '22 22:07 ardmn

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

mtrakal avatar Feb 10 '23 00:02 mtrakal