SYSTEM_UI_FLAG_LOW_PROFILE cannot be allowed or is not a field for google threadsample

I import the sequence code from https://developer.android.com/training/multiple-threads/index.html , but I got errors after importing.

This: SYSTEM_UI_FLAG_LOW_PROFILE cannot be enabled or is not a field SYSTEM_UI_FLAG_HIDE_NAVIGATION cannot be enabled or is not a field

The project is minSdkVersion = 11 and targetSdkVersion = 17, and I already installed .v4 support with it.

Does anyone have the same problem? How to fix it?

Thanks in advance. Screen capture

+4
source share
1 answer

This error SYSTEM_UI_FLAG_LOW_PROFILE included in the API >= 14 , and SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION included in the API >= 16
So you need minSdk = 14. See Document http://developer.android.com/reference/android/view/View.html#SYSTEM_UI_FLAG_LOW_PROFILE . It is necessary to change the goal of building the project on Android 4.0 in order to get rid of errors.

+11
source

Source: https://habr.com/ru/post/1480208/


All Articles