as 调试时报错“APK signature verification failed.”

发现是设置最低24版本api,设备只有23

因此修改build.gradle文件如下:

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.zhenhunfan.activitytest"
        minSdkVersion 23      //主要改这里为23
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
}

posted @ 2020-11-05 09:35  镇魂帆-张  阅读(3692)  评论(0编辑  收藏  举报