Gradle error app:processDebugGoogleServices'

Asked

Viewed 117 times

1

I have an error trying to generate APK in Android Studio, this being demonstrated the following message:

Error:Execution failed for task ':app:processDebugGoogleServices'.
> Please fix the version conflict.

I’ve made some changes based on the information I found on the web but without success.

Grateful.

  • well apparently you are using different versions of googleservices. This occurs with me using manually added libs (adding the . jar in the project)

1 answer

0

enters the build.Radle found here: inserir a descrição da imagem aqui

and put the information this way:

apply plugin: 'com.android.application'

android { compileSdkVersion 23 buildToolsVersion "23.0.3"

defaultConfig {
    applicationId "br.naobemaocaso.com"
    minSdkVersion 9
    targetSdkVersion 23
    versionCode 12
    versionName "2.0"

    //para atualizar a versao do app  basta mudar o version code
    //version name não precisa alterar   mas e ele que e exibido na play store
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

}

dependencies { Compile fileTree(include: ['*.jar'], dir: 'libs') testCompile 'junit:junit:4.12' Compile 'com.android.support:appcompat-v7:23.2.1' Compile 'com.android.support:design:23.2.1' com.google.code.gson:gson:2.2.4' Compile 'org.jbundle.util.osgi.Wrapped:org.jbundle.util.osgi.Wrapped.org.apache.http.client:4.1.2' Compile files('libs/Graphview-4.0.1.jar') } hope I’ve helped

Browser other questions tagged

You are not signed in. Login or sign up in order to post.