如何修复
Error:Execution failed for task ':app:processDebugGoogleServices'.
> No matching client found for package name 'com.talada.myapplication'
我改变'com.google.android.gms: play-services-gcm: 8.4.0'到'com.google.android.gms: play-services-gcm: 8.3.0'和分布Url=https://services.gradle.org/distributions/gradle-2.12-all.zip分布Url=https://services.gradle.org/distributions/gradle-2.10-all.zip
不起作用。
build.gradle(应用程序)
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.talada.myapplication"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.2.1'
compile 'com.google.android.gms:play-services-gcm:8.4.0'
}
apply plugin: 'com.google.gms.google-services'
构建渐变(项目)
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
classpath 'com.google.gms:google-services:2.0.0-rc3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.12-all.zip
编译
dependencies {
compile 'com.google.android.gms:play-services:9.6.1'
}
并删除
apply plugin: 'com.google.gms.google-services'
我在Android Studio上出错了。错误:任务“:app:ProcessDebugManifest”执行失败。 清单合并失败:来自AndroidManifest.xml:28:9-52的属性Application@Theme Value=(@style/AppTheme.NOActionBar)也存在于[:AdGateMediaSDK:]AndroidManifest.xml:19:9-40
null 请访问https://help.gradle.org获取更多帮助 在13M 30s运行分级任务“组装发布”时生成失败...正在运行分级任务“汇编发布”...已完成845,3S分级任务AssemblereRease失败,退出代码为%1
我刚刚在我的Android Studio项目中添加了使用Firebase存储的代码,得到了这个错误: google-services.json文件中的package_name与清单中的package_name相同。我需要改变什么?
我目前正在使用Cordova CLI和Android cmdline工具,当我运行Cordova build生成apk时,会出现这个错误。 任务': app: Process DebugResources'执行失败。 执行com.android.build.gradle.internal.tasks.Workers$ActionFacade时出错 Android资源链接失败/home/user/.
错误:任务执行失败 ': app:使用合并Java Res For Debug转换资源'。 com.android.build.api.transform.TransformException:com.android.builder.packaging.DuplicateFileException: APK META-INF/LICENSE File1中复制的重复文件: C:\用户Jithin-P