Checks use of resource IDs in places requiring constants
Checks use of resource IDs in places requiring constants
Avoid the usage of resource IDs where constant expressions are required.
A future version of the Android Gradle Plugin will generate R classes with non-constant IDs in order to improve the performance of incremental compilation.
Issue id: NonConstantResourceId
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for Android 2023.3, Qodana for JVM 2023.3 |
Plugin: | Android, 2022.3.1 Beta 2 |
Last modified: 13 July 2023