Fixed
Status Update
Comments
il...@google.com <il...@google.com> #2
There is no error when I use kotlin versions: 1.6.21, but issue/error starts appearing when kotlin version is 1.7.0
my...@gmail.com <my...@gmail.com> #3
I have the same problem, i think no stable version of room 2.4.2 with kotlin 1.7.0
jb...@google.com <jb...@google.com>
ap...@google.com <ap...@google.com> #4
usage implementation 'androidx.room:room-ktx:2.5.0-alpha02'
ap...@google.com <ap...@google.com> #5
me too
ap...@google.com <ap...@google.com> #6
Thanks for the report I was able to reproduce the issue and indeed it occurs when using Kotlin 1.7.0. Sadly I don't have a workaround yet, but will investigate further.
jb...@google.com <jb...@google.com> #7
and just to clarify, we see the issue when using Room 2.4.2, but not with Room 2.5.0-alpha02.
ap...@google.com <ap...@google.com> #8
it occurs when kotlin version 1.7.0 and room 2.5.0-alpha02 as well to me. I solved the problem by downgrading kotlin version to 1.6.20
Description
This code snippet will no longer work with lint tools
27.1.0+
(which is what's used in AGP 4.1.0+).It looks like it should be changed to
buildVariant
, and then there are changed APIs for accessing library info (the.libraries
call at the end will also need fixing).This results in the following failure when I build with newer lint tools and AGP 4.1.0-beta05 in our project