After upgrading to android gradle `3.1.0-rc02` I s...
# android
t
After upgrading to android gradle
3.1.0-rc02
I see following message:
Copy code
'annotationProcessor' dependencies won't be recognized as kapt annotation processors. Please change the configuration name to 'kapt' for these artifacts: 'com.android.databinding:compiler:3.1.0-rc02'
Including following line in dependencies didn't help:
Copy code
kapt 'com.android.databinding:compiler:3.1.0-rc02`
How to force databinding to use kapt?
u
Do you have both kapt and annotationProcessor?
t
no, starting
3.1.0
android gradle plugin sets automatically databinding dependency
r
Remove annotation processor from build.gradle and just add the kapt plugin
You shouldn't have both. Kapt replaces The other one
t
as I said I only have
kapt 'com.android.databinding:compiler:3.1.0-rc02
and it doesn't helped
p
Nah, I have i had it with the 3.0.1 plugin too
Second, there is a bug for that
One of these wontfix issues 😉
t
ah, good to know. Too bad that it is Won't fix 😞
p
I guess another ping won't hurt, maybe someonoe sees it
d
@yigit shouldn’t ☝️ be fixed in AGP 3.2.X?
Hmm… apparently not… Just tried it with
3.1.0-rc03
and
3.2.0-alpha07
and I still get the same warning
👍 1
y
For data binding, we add your kapt dependency
p
Then why does the warning appear? @yigit
y
That is coming from kapt
İt should dedup
p
So it's a kapt bug?