当我尝试如下更改gradle设置时出现此错误。
android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running
compileSdkVersion 25
buildToolsVersion "27.0.3"
defaultConfig {
applicationId "jp.co.mindpiece"
minSdkVersion 19
targetSdkVersion 26
versionCode 1
versionName "1.0"
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
可能是由于targerSdkVersion 26引起的错误吗? 请指教