if(Build.VERSION.SDK_INT<26){ } 26为api版本, 每个api版本, 可以在 Android Studio -> file -> settings -> Android SDK 中查看