I saw all other questions, but none of accepted answers is working for me.
By following integration steps found here https://dev.twitter.com/twitter-kit/android/int
This happened to me when I updated Android Studio from 3.2 to 3.3, to fix it I just updated the
3.2
3.3
classpath 'com.google.gms:google-services:4.1.0'
to
classpath 'com.google.gms:google-services:4.2.0'
And it worked again