Java can';在库类android.content.pm.PackageManager中找不到引用的方法boolean IsInstallApp()

Java can';在库类android.content.pm.PackageManager中找不到引用的方法boolean IsInstallApp(),java,android,android-layout,android-studio,apk,Java,Android,Android Layout,Android Studio,Apk,在android studio 3中生成签名apk时,我遇到两个错误。 当我尝试构建它时,请成功构建。 请帮助解决此错误 但当我尝试生成有符号的apk时,我得到了以下错误 警告:com.google.android.gms.internal.zzbga:在库类android.content.pm.PackageManager中找不到引用的方法“boolean-isInstantApp()” 警告:com.google.android.gms.internal.zzbgb:在库类android.c

在android studio 3中生成签名apk时,我遇到两个错误。 当我尝试构建它时,请成功构建。 请帮助解决此错误

但当我尝试生成有符号的apk时,我得到了以下错误

警告:com.google.android.gms.internal.zzbga:在库类android.content.pm.PackageManager中找不到引用的方法“boolean-isInstantApp()”

警告:com.google.android.gms.internal.zzbgb:在库类android.content.pm.PackageManager中找不到引用的方法“boolean-isInstantApp(java.lang.String)”

以下是我的build.gradle文件代码

  apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion '26.0.2'

    defaultConfig {
        applicationId "com.micropeda.sudoku"
        minSdkVersion 15
        targetSdkVersion 22
        versionCode 20171216
        versionName "2.4.1"
    }


  buildTypes {
        release {
            minifyEnabled true
            shrinkResources true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation 'com.google.android.gms:play-services-ads:11.6.2'
    compile fileTree(dir: 'libs', include: ['*.jar'])
    //noinspection GradleCompatible
    compile 'com.android.support:appcompat-v7:22.1.1'
    compile 'com.google.android.instantapps:instantapps:1.1.0'
}

解决我自己,我只是更新build.gradle文件。 这是我更新的build.gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 26
    buildToolsVersion '27.0.1'

    defaultConfig {
        applicationId "com.micropeda.sudoku"
        minSdkVersion 15
        targetSdkVersion 26
        versionCode 20171216
        versionName "2.4.1"
    }


 buildTypes {
      release {
            minifyEnabled true
            shrinkResources true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

}

dependencies {
    implementation 'com.google.android.gms:play-services-ads:11.6.2'
    compile fileTree(dir: 'libs', include: ['*.jar'])
    //noinspection GradleCompatible
    compile 'com.android.support:appcompat-v7:22.1.1'
    compile 'com.google.android.instantapps:instantapps:1.1.0'
}

为什么这个问题被否决了。