安卓工作室Apk未签署调试变体

时间:2015-12-04 11:04:33

标签: android gradle apk

Gradle 1.5

我将在四个具有不同屏幕的模拟器中启动我的游戏。

它适用于2个仿真器,并且在2个仿真器中它不起作用。

Android studio会提示一条消息:

Installation failed since the APK was either not signed, or signed incorrectly.
If this is a Gradle-based project, then make sure the signing configuration is specified in the Gradle build script

控制台中的错误:

pkg: /data/local/tmp/com.darwins.cubegame
Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]


Installation failed since the APK was either not signed, or signed    incorrectly.
If this is a Gradle-based project, then make sure the signing configuration is specified in the Gradle build script.

我正在调试变种,所以它应该用调试密钥存储区签名(它在2个模拟器中完成),但它不在另外2个。

任何解决方法,或任何可以调查的提示?

所有(普通仿真器)同时打开

Gradle文件

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
    applicationId "com.darwins.cubegame"
    minSdkVersion 11
    targetSdkVersion 23
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
    }
}
}

    dependencies {
    compile project(':darwinsEngine2')
    compile 'com.android.support:appcompat-v7:23.1.0'
    compile 'com.android.support:design:23.1.0'
    compile 'com.android.support:recyclerview-v7:23.1.0'
}

0 个答案:

没有答案