Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

与viewBinding 冲突 #1036

Open
Pom115 opened this issue Feb 15, 2021 · 2 comments
Open

与viewBinding 冲突 #1036

Pom115 opened this issue Feb 15, 2021 · 2 comments

Comments

@Pom115
Copy link

Pom115 commented Feb 15, 2021

在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
Copy link

有人知道怎么解决么?

@wanlinruo
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants