Hi guys, did someone solved issue with kapt3 and d...
# android
m
Hi guys, did someone solved issue with kapt3 and databinding, that kapt3 shows compilation errors without info/error messages from databinding? Kotlin 1.3.72 + Android Gradle Plugin 4.0.0
Copy code
[INFO] Processing java sources with annotation processors: [*redacted*]
C:\Users\arcao\project\app\build\generated\source\kapt\debug\com\example\app\DataBinderMapperImpl.java:131: error: cannot find symbol
import com.example.app.databinding.ViewListItemBindingImpl;
                                      ^
  symbol:   class ViewListItemBindingImpl
Note: [1] Wrote GeneratedAppGlideModule with: [com.bumptech.glide.integration.okhttp3.OkHttpLibraryGlideModule]
> Task :app:kaptDebugKotlin FAILED
  location: package com.example.app.databinding
a
It looks like your
view_list_item
layout has some issue. Something inside
@{}
is wrong. Easiest would be to check layout file. Or you can check generated
ViewListItemBindingImpl
and see what field has an error. Usually the problem is somewhere near.
r
Try this steps 1. Disable data binding in gradle file 2.invalidate cache/restart studio 3. Enable data binding