after upgrading to android studio 4.1 , i am getti...
# android
a
after upgrading to android studio 4.1 , i am getting this warning for using switch cases in one particular java code:
Resource IDs will be non-final in Android Gradle Plugin version 5.0, avoid using them in switch case statements
. i found this article related to this issue : http://tools.android.com/tips/non-constant-fields . i usually use kotlin, but maintain some java projects. as a kotlin user, is it still okay to use
when-else
blocks with resource ids? or would that be impacted too ?
😶 2
😑 1
👴 1
how is this not related to both kotlin and android ?
c
Because
switch
is a java statement 😅
a
@Chrimaeon the java part was background context. the main question was
as a kotlin user, is it still okay to use when-else blocks with resource ids? or would that be impacted too ?