ANTLR Tool version 4.7.1 used for code generation does not match the current runtime version 4.5.3

后端 未结 6 1594
别那么骄傲
别那么骄傲 2021-02-19 23:10

Im working on an Android App, currently using DSL and some libraries, suddenly the build gave me this error.

Task :app:kaptDebugKotlin FAILED ANTLR Tool

6条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-19 23:43

    The problem was fixed for me by changing this. from:

    implementation "androidx.room:room-runtime:$depVersion"
    implementation "androidx.room:room-compiler:$depVersion"
    

    to:

    implementation "androidx.room:room-runtime:$depVersion"
    annotationProcessor "androidx.room:room-compiler:$depVersion"
    

提交回复
热议问题