修改Gradle中的SDK版本
将28改为26即可
android {
compileSdkVersion 26
defaultConfig {
applicationId “com.example.weather”
minSdkVersion 15
targetSdkVersion 26
dependencies {
implementation fileTree(dir: ‘libs’, include: [’*.jar’])
implementation ‘com.android.support:appcompat-v7:26.0.0’