Android – repeated input error after adding Google service

I want to add firebase to my application. I integrated firebase according to the official firebase file. But when I tried to "run" the application, it gave me this warning

Invalid Sign

apply plugin: 'com.google.gms.google-services'

Unfortunately, I need Google services to work with firebase. This is my app gradle file

 apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion '23.0.3'

    defaultConfig {
        applicationId ""
        minSdkVersion 19
        targetSdkVersion 22
        versionCode 15
        versionName "2.01"
        multiDexEnabled true
    }

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

    packagingOptions {
        exclude 'Meta-INF/LICENSE'
        exclude 'Meta-INF/LICENSE-FIREBASE.txt'
        exclude 'Meta-INF/NOTICE'
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile files('libs/main.jar')
    compile 'com.android.support:appcompat-v7:23.2.1'
    compile 'com.android.support:cardview-v7:23.0.+'
    compile 'com.android.support:recyclerview-v7:23.0.+'
    compile 'com.squareup.picasso:picasso:2.5.0'
    compile 'com.commit451:NativeStackBlur:1.0.1'
 compile 'com.google.firebase:firebase-analytics:9.0.0'
    compile 'com.github.bumptech.glide:glide:3.6.1'
    compile 'com.facebook.android:audience-network-sdk:4.11.0'
}
apply plugin: 'com.google.gms.google-services'

This is my project gradle file

 buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.1.0'
        classpath 'com.google.gms:google-services:3.0.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

resolvent:

The problem is on the Facebook audience network. Once I rule out Google service, it works well. If anyone with the same problem changes your audience network dependency

   compile ('com.facebook.android:audience-network-sdk:4.11.0'){
     exclude group: 'com.google.android.gms'
 }

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>