Adding this line to my gradle:
implementation 'com.google.firebase:firebase-analytics:17.0.1'
Results in this error:
error: resource android:attr/fontVariationSettings not found.
Based on what I read online, to fix this, I upgrade my compileSdkVersion from 27 to 28:
compileSdkVersion 28
Then I get this error when I try to run:
Program type already present: com.google.android.gms.internal.measurement.zzbq
And from there it's a spinning circle changing things and version numbers and adding things to the settings.gradle, etc, with androidx. I have no idea how to fix this, and I imagine there is a more simple solution. Thoughts?
EDIT: It may be worth mentioning that when I made the above changes, I see red across all of these, indicating that it should not use a different version (27) than the compileSdkVersion (28), so I'm not sure if I should make that change:
implementation "com.android.support:support-v4:$rootProject.supportVersion"
implementation "com.android.support:appcompat-v7:$rootProject.supportVersion"
implementation "com.android.support:recyclerview-v7:$rootProject.supportVersion"
implementation "com.android.support:cardview-v7:$rootProject.supportVersion"
implementation "com.android.support:design:$rootProject.supportVersion"