Status Update
Comments
cm...@google.com <cm...@google.com> #2
Assigning to Ivan for initial diagnosis as I suspect he has the most context.
ga...@google.com <ga...@google.com> #3
The issue is caused by change in the classpath when compiling androidTest and test. More specifically, classpath for androidTest variant now contains ...mylibrary/build/intermediates/compile_library_classes_jar/debug/classes.jar
and -Xfriend-paths=...mylibrary/build/tmp/kotlin-classes/debug
. This means that symbol will be resolved in a jar that is not part of the "friend paths", causing it not to be accessible if modifier is internal
.
ga...@google.com <ga...@google.com> #4
I've uploaded
ga...@google.com <ga...@google.com> #5
Follow up bug about adding new API to AGP -
This issue is fixed in ag/I2de2a2cb7b847b49d2217c844627b7fa4972d4aa.
Description
When upgrading from
4.0.0-beta01
->4.1.0-alpha01
we found thatandroidTest
ortest
code can no longer access internal methods of the library when compiling.if you have the following in
main/kotlin
and the following in
androidTest/kotlin
This is a big regression as we have many test relying on being able to access
internal
methods.