My App crashes whenever I call this code:
if (FirebaseAuth.getInstance().getCurrentUser() == null) {
startActivityForResult(
AuthUI.getIn
I had same issue, after trying lots of things, this fixed this issue for me:
I modified my build.gradle on allProjects{} and added the following
allprojects {
repositories {
google()
jcenter()
//start here
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.google.android.gms') {
details.useVersion '12.0.1'
}
if (requested.group == 'com.google.firebase') {
details.useVersion '12.0.1'
}
}
}
//end
}
}
source here