Unable to merge dex

前端 未结 30 2749
深忆病人
深忆病人 2020-11-21 22:14

I have Android Studio Beta. I created a new project with compile my old modules but when I tried launching the app it did not launch with the message:

Error:         


        
30条回答
  •  难免孤独
    2020-11-21 23:11

    Hi I have same issue tried almost everything. So, finally i resolved after 6 hour long struggle by debugging everything line by line.

    classpath 'com.google.gms:google-services:3.0.0'
    

    Google-services 3.0 Doesn't support firebase with Studio 3.0 with playServiceVersion: 11.6.0 or less.

    implementation "com.google.firebase:firebase-messaging:$rootProject.ext.playServiceVersion"
    implementation "com.google.firebase:firebase-core:$rootProject.ext.playServiceVersion"
    implementation "com.firebase:firebase-jobdispatcher-with-gcm-dep:$rootProject.ext.jobdispatcherVersion"
    

    Solution :

    I have change google services to

    classpath 'com.google.gms:google-services:3.1.1'
    

    And it support firebase services.

    Hopefully somebody save his/her time.

提交回复
热议问题