【问题标题】:Application Installation Failed, build script error应用程序安装失败,构建脚本错误
【发布时间】:2016-10-18 21:44:57
【问题描述】:

在这里,我添加了最新的 google play services(com.google.gms:google-services:3.0.0)、gradle(com.android.tools.build:gradle:2.2.0-alpha)。在我的设备中安装时出现以下错误。

这是应用程序 build.gradle 的内容。

android {
compileSdkVersion 23
buildToolsVersion "23.0.3"

packagingOptions {
    exclude 'META-INF/NOTICE' // will not include NOTICE file
    exclude 'META-INF/LICENSE' // will not include LICENSE file
    exclude 'META-INF/maven/com.squareup.retrofit/retrofit/pom.properties'
    exclude 'META-INF/maven/com.squareup.retrofit/retrofit/pom.xml'
    exclude 'META-INF/maven/com.squareup.okhttp/okhttp/pom.xml'
    exclude 'META-INF/maven/com.squareup.okhttp/okhttp/pom.properties'
}

defaultConfig {
    applicationId "com.wolfmatrix.navz"
    minSdkVersion 19
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
    multiDexEnabled true
}


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

lintOptions {
    abortOnError false
}

sourceSets { main { assets.srcDirs = ['src/main/assets', 'src/main/assets/'] } }

}

【问题讨论】:

  • 您签署了您的应用 apk 吗??
  • 是的,不发布。

标签: android gradle build installation apk


【解决方案1】:

错误表明 apk 签名错误

试试这个 -

1) 从 "{WORKSPACE} \ {YOUR APP FOLDER}\app\build\outputs\apk" 中删除您签名的 apk。

2) 从设备上卸载您的应用。

3) 通过 USB 调试运行项目以创建 app-debug.apk

4) 成功构建后,您可以签署您的应用 apk 以进行发布。

希望它会有所帮助:)

更新

检查这个 - Installation failed with Android Studio, APK not signed

【讨论】:

    猜你喜欢
    • 2016-07-23
    • 2023-04-05
    • 1970-01-01
    • 1970-01-01
    • 2020-03-30
    • 1970-01-01
    • 2016-02-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多