android - Error updating Google Play Services from 6.5.87 to 7.5.0 -


i'm trying update google play services lib 6.5.87 7.5.0 after change android version @ build.gradle:

build.gradle import @ 6.5.87

i'm getting following error:

error after update 7.5.0

i had read error related appcompat i'm not using or including lib.

this complete build.gradle: import java.util.regex.pattern

buildscript {     repositories {     mavencentral()      // configuration fabric     jcenter()     maven { url 'https://maven.fabric.io/public' }     }      dependencies {         classpath 'com.android.tools.build:gradle:1.2.3'          // fabric gradle plugin uses open ended version react android tooling updates         classpath 'io.fabric.tools:gradle:1.+'     } } apply plugin: 'com.android.application' apply plugin: 'io.fabric' // fabric gradle plugin, after android plugin  dependencies {     // 'jar' files in '/libs' folder     compile filetree(dir: 'libs', include: '*.jar')      compile 'com.facebook.android:facebook-android-sdk:4.1.0'     compile 'com.google.android.gms:play-services:6.5.87'      // fabric     compile('com.crashlytics.sdk.android:crashlytics:2.+@aar') {     transitive = true;     } } repositories { mavencentral()  // configuration fabric jcenter() maven { url 'https://maven.fabric.io/public' } } 

your mistake u have changed project label gradle instead of app label. solution: put compile 'com.google.android.gms:play-services:6.5.87' app label gradel file put apply plugin: 'com.google.gms.google-services' well.

similarly in project label gradle file put

classpath 'com.google.gms:google-services:1.3.0-beta1' 

example: app gradle:

apply plugin: 'com.android.application' apply plugin: 'com.google.gms.google-services'  android {     compilesdkversion 22     buildtoolsversion "22.0.1"      defaultconfig {         applicationid "com.appifiedtech.androidgoogleplusapi"         minsdkversion 15         targetsdkversion 22         versioncode 1         versionname "1.0"     }     buildtypes {         release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'         }     } }  dependencies {     compile filetree(dir: 'libs', include: ['*.jar'])     compile 'com.android.support:appcompat-v7:22.2.1'     compile 'com.google.android.gms:play-services:7.5.0'  } 

project label gradle:

// top-level build file can add configuration options common sub-projects/modules.  buildscript {     repositories {         jcenter()     }     dependencies {         classpath 'com.android.tools.build:gradle:1.2.3'         classpath 'com.google.gms:google-services:1.3.0-beta1'          // note: not place application dependencies here; belong         // in individual module build.gradle files     } }  allprojects {     repositories {         jcenter()     } } 

Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -