由于在AndroidMenifest增加了
android:requestLegacyExternalStorage属性,该属性需要compileSDK在 29以上才可以使用,修改compileSdk到29或以上即可编译成功
compileSdkVersion 31 defaultConfig { applicationId "com.meteorshower.autoclock" minSdkVersion 24 targetSdkVersion 31 versionCode 2 versionName "1.2" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" }