gpt4 book ai didi

android - INSTALL_PARSE_FAILED_NO_CERTIFICATES 与谷歌服务插件

转载 作者:太空狗 更新时间:2023-10-29 14:05:11 29 4
gpt4 key购买 nike

我有一个具有不同构建类型和风格的大项目。它已经投入生产了半年多,我已经对其版本进行了数百次更新。今天我需要在项目中实现插件:'com.google.gms.google-services' 并且无法运行应用程序,因为 INSTALL_PARSE_FAILED_NO_CERTIFICATES。我确定构建类型和风格的配置存在问题,但在应用插件之前:'com.google.gms.google-services' 一切都运行良好。请帮助我了解哪些内容会与 google-services 插件发生冲突。

    apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
apply plugin: 'retrolambda'
apply plugin: 'android-apt'
apply plugin: 'android'
apply plugin: 'com.google.gms.google-services'

buildscript {
repositories {
mavenCentral()
mavenLocal()
maven { url 'https://maven.fabric.io/public' }
}

dependencies {
classpath 'me.tatarka:gradle-retrolambda:2.4.1'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
classpath 'io.fabric.tools:gradle:1.+'
}
}

repositories {
mavenCentral()
mavenLocal()
maven { url 'https://maven.fabric.io/public' }
maven { url "https://github.com/taplytics/Taplytics-Android-SDK/raw/master/AndroidStudio/" }
}

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
dexOptions {
jumboMode = true
}

defaultConfig {
applicationId "com.examplepack.appp"
minSdkVersion 14
targetSdkVersion 23
versionCode 291
versionName "1.0.1.291"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.config
}

signingConfigs {
config {
storeFile file('certificate.jks')
storePassword 'examplepass'
keyAlias 'appl'
keyPassword 'examplepass'
}
}

buildTypes {
debug {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.config

}
}
productFlavors {
stage {
}
dev {
}
prod {
}

}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
packagingOptions {
exclude 'LICENSE.txt'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/MANIFEST.MF'
}

lintOptions {
checkReleaseBuilds false
abortOnError false
}
}

apt {
arguments {
androidManifestFile variant.outputs[0].processResources.manifestFile
resourcePackageName "com.examplepack.appp"
}
}

retrolambda {
jdk "/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home"
oldJdk System.getenv("JAVA6_HOME")
javaVersion JavaVersion.VERSION_1_6
}

dependencies {
.............
compile 'com.google.android.gms:play-services:8.1.0'
}

最佳答案

有一个known issue使用 1.4-beta2 或更高版本的 Gradle 插件。

您可以使用旧版本来实现此功能

关于android - INSTALL_PARSE_FAILED_NO_CERTIFICATES 与谷歌服务插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32980485/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com