问题是 isStateSaved是在support 26版本后加入的,可compileSdkVersion改为27,并且将easypermissions更新到最新版2.0.1
或在app的build.gradle里加入下面一段代码统一android support库为27版本
subprojects {
afterEvaluate {project ->
if (project.hasProperty("android")) {
android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
defaultConfig {
targetSdkVersion 27
}
}
}
}
}