Fixed
Status Update
Comments
ja...@google.com <ja...@google.com>
tn...@google.com <tn...@google.com> #2
Found suddenly that this process has run for 3 hours !!
Shouldn't AS tell me that another builds was going on ?
By the way, it has never run for 3 hours before...
RG
Shouldn't AS tell me that another builds was going on ?
By the way, it has never run for 3 hours before...
RG
tn...@google.com <tn...@google.com> #3
Thinking back for three hours, I may have tried to stop the build process by clicking on the gray x behind "Gradle bulding..." message on the AS status bar. All seemed OK then...
RG
RG
tn...@google.com <tn...@google.com> #4
FYI theese are the AS related applications running during theese hours...
tn...@google.com <tn...@google.com> #5
Saving project and restarting AS solved the problem so far...
Description
Given the following code:
if (Build.VERSION.SDK_INT == 26) {
// This attribute can only be set in code on API 26. It's in our theme XML on 27+.
window.decorView.systemUiVisibility = SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR
}
Lint correctly displays no error as the usage is correctly guarded by SDK_INT.
When I run the 'lint' task from the command-line, however, it reports a problem with the property import:
MainActivity.kt:6: Warning: Field requires API level 26 (current min is 24): android.view.View#SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR [InlinedApi]
import android.view.View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~