Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android App freezes after implementing Google Firebase

Here is my build.gradle

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.4.0'
    compile 'com.android.support:design:23.4.0'
    compile 'com.android.support:cardview-v7:23.4.0'
    compile 'com.android.support:support-v4:23.4.0'
    compile 'com.github.castorflex.smoothprogressbar:library:1.1.0'
    compile 'com.google.android.gms:play-services:9.0.2'
    compile 'com.google.firebase:firebase-core:9.0.2'
    compile 'com.google.firebase:firebase-analytics:9.0.2'
    compile 'com.google.firebase:firebase-ads:9.0.2'
    compile 'com.google.firebase:firebase-crash:9.0.2'
    compile 'com.google.firebase:firebase-messaging:9.0.2'
}
apply plugin: 'com.google.gms.google-services'

app freezes when the app resumes. it gives anr (activity not responding) error.

is there any problem with play services 9.0+ or with firebase ?

like image 935
Parth Patel Avatar asked Jun 06 '16 14:06

Parth Patel


1 Answers

I was solved the issue by removing the line

compile 'com.google.android.gms:play-services:9.0.2'
like image 113
Parth Patel Avatar answered Sep 29 '22 22:09

Parth Patel