com.android.build.transform.api.TransformException

后端 未结 25 2033
独厮守ぢ
独厮守ぢ 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条回答
  • 2020-11-22 06:55

    this code solved problem

    defaultConfig {
            multiDexEnabled true
    }
    

    For easiest way to implement google sign in visit: google sign in android

    Also try

    dexOptions {
            javaMaxHeapSize "4g" 
        }
    

    Also keep same version number for different services.

    0 讨论(0)
  • 2020-11-22 06:56

    I'm using AS 1.5.1 and encountered the same problem. But just cleaning the project just wont do, so I tried something.

    • clean project
    • restart AS
    • Sync Project

    This worked with me, so I hope this helps.

    0 讨论(0)
  • 2020-11-22 06:56

    Incase 'Instant Run' is enable, then just disable it.

    0 讨论(0)
  • 2020-11-22 06:57

    I had the same option and as soon as I turned off Instant run, it worked fine on my API16 device, but on the API24 device it worked fine with Instant run.

    Hope this helps someone having the same issue

    0 讨论(0)
  • 2020-11-22 06:58

    I had same problem when i rolled back to old version via git, and that version had previous .jar library of one 3rd party api, and for some reason turned out that both jar of the same sdk, just different versions were in /libs folder.

    0 讨论(0)
  • 2020-11-22 06:58

    It happened to me because of Eclipse memory leak. I had to restart my computer.

    0 讨论(0)
提交回复
热议问题