Status Update
Comments
da...@google.com <da...@google.com> #2
[Deleted User] <[Deleted User]> #3
ju...@gmail.com <ju...@gmail.com> #4
[Deleted User] <[Deleted User]> #5
[Deleted User] <[Deleted User]> #6
uc...@google.com <uc...@google.com>
da...@google.com <da...@google.com> #7
je...@google.com <je...@google.com>
pa...@gmail.com <pa...@gmail.com> #8
Here is how DataBinderMapperImpl would look like:
hu...@google.com <hu...@google.com> #9
I have sent out a fix for review: Change-Id: I4f0c802764729a415b968520c75fa052671b646c
[Deleted User] <[Deleted User]> #10
Is there any chance that this will be included in the next canary release?
hu...@google.com <hu...@google.com> #11
[Deleted User] <[Deleted User]> #12
hu...@google.com <hu...@google.com> #13
[Deleted User] <[Deleted User]> #14
hu...@google.com <hu...@google.com> #15
[Deleted User] <[Deleted User]> #16
hu...@google.com <hu...@google.com> #17
[Deleted User] <[Deleted User]> #18
[Deleted User] <[Deleted User]> #19
ka...@gmail.com <ka...@gmail.com> #20
ma...@cyberagent.co.jp <ma...@cyberagent.co.jp> #21
It seems that when we have other kapt tasks (dagger, et al.), then this error occurred in the unitTest and androidTest.
Test with (AS 4.0 alpha 01).
hu...@google.com <hu...@google.com> #22
ch...@gmail.com <ch...@gmail.com> #23
hu...@google.com <hu...@google.com> #24
ma...@gmail.com <ma...@gmail.com> #25
da...@google.com <da...@google.com> #26
Do you have repro steps? Just to help ensure that this is, in fact, the same issue reported here? There might be multiple paths to produce the same error, etc. etc. If you're certain it's the same issue as here, then repro steps will help us determine if we should reopen this. Otherwise, it might be best to file a new bug since this one seems to have quite a bit of history on it.
Meanwhile, there are 20 +1's on this bug. Can anyone else who was experiencing this report that it was actually fixed for them starting in 3.6.0?
Thanks! David
sa...@dfarooq.com <sa...@dfarooq.com> #27
Hey David,
I think this may have regressed. I created a fork of the original sample project with AGP 4.1.2.
The Robolectric test fails with the same error. If kotlin-kapt
plugin is removed, the test passes. But then the buildFeatures
databinding config says If you plan to use data binding in a Kotlin project, you should apply the kotlin-kapt plugin.
So possibly something to do with kapt?
da...@google.com <da...@google.com> #28
Ooof :) Hung, are you swamped? Would you be able to take a look?
da...@google.com <da...@google.com> #29
Hung: I meant to say, I reopned this bug, but if it ends up being a different cause, or just because this bug already has so much history, feel free to reclose it and create a new one.
sa...@dfarooq.com <sa...@dfarooq.com> #30
I tried 4.2.0-beta05 and 7.0.0-alpha8 in Arctic Fox Canary 08 and the behavior is the same. Remove kapt, test passes. Added it back, get the NoClassDefFound error.
hu...@google.com <hu...@google.com> #31
Thank you for the sample project! This issue was mentioned earlier at
This is caused by
Basically, when using kapt
, users will need to add:
kaptTest some-random-dependency
forkapt
to run annotation processing on unit test source code, which in this case will include the missing data binding classes.kaptAndroidTest some-random-dependency
forkapt
to run annotation processing on androidTest source code.
Please follow the Kapt bug above for progress on this issue.
@David: I'm closing this issue as this should ideally be fixed by the Kotlin Gradle plugin.
ar...@gmail.com <ar...@gmail.com> #32
I can not sing google account
Description
Sample repo:
To reproduce:
- Run `ConnectedMainActivityTest` = OK
- Run `MainActivityTest` = OK
- Run `ConnectedLibActivityTest` = OK
- Run `LibActivityTest` = Error
------
Build: $VERSION, AI-183.5429.30.34.5310756, 201902141945,
AI-183.5429.30.34.5310756, JRE 1.8.0_152-release-1248-b22x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.14, screens 1680x1050, 1920x1080; Retina
Android Gradle Plugin: 3.4.0-beta05
Gradle: 5.1.1
NDK: from local.properties: (not specified); latest from SDK: (not found);
LLDB: pinned revision 3.1 not found; latest from SDK: (package not found);
CMake: from local.properties: (not specified); latest from SDK: (not found); from PATH: (not found);
IMPORTANT: Please read