alibaba / freeline

A super fast build tool for Android, an alternative to Instant Run
https://www.freelinebuild.com/
BSD 3-Clause "New" or "Revised" License
5.48k stars 622 forks source link

与viewBinding 冲突 #1036

Open Pom115 opened 3 years ago

Pom115 commented 3 years ago

在project的build.gradle的buildscript里的dependencies里加上classpath 'com.antfortune.freeline:gradle:0.8.8',然后在app的build.gradle的android里加上 viewBinding { enabled = true },运行就会报错,去掉其中一个就能运行,报错如下: Execution failed for task ':app:dataBindingGenBaseClassesDebug'.

com.squareup.javapoet.MethodSpec$Builder.addComment(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/MethodSpec$Builder;

viewBinding那么好用怎么能与他冲突呢,如果freeline还在维护的话麻烦看看这个问题

shun1249844726 commented 2 years ago

有人知道怎么解决么?

wanlinruo commented 1 year ago

删除一下freeline的依赖即可,直接使用viewBinding就行了