com.android.build.transform.api.TransformException

后端 未结 25 2538
独厮守ぢ
独厮守ぢ 2020-11-22 06:14

I am trying to integrate Google sign in, in my app, I added these libraries:

compile \'com.google.android.gms:play-services-identity:8.1.0\'
compile \'com.go         


        
25条回答
  •  猫巷女王i
    2020-11-22 06:38

    I also faced similar issue in Android Studio 1.5.1 and gradle 1.5.0. I just have to remove unwanted libraries from dependencies which may be automatically added in my app's build.gradle file. One was : compile 'com.google.android.gms:play-services:8.4.0'. So for best practices try to only include specific play services library like for ads include only

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

    Although

    defaultConfig {
        multiDexEnabled true
    }
    

    this will also solve the issue, but provides with a lot of Notes in gradle console, making it confusing to find the other real issues during build

提交回复
热议问题