I followed the steps on the Firebase Auth UI page to use the Dropbase solution to install the provider verification number in the Android application with the phone. I use Crashlytics in my project and I am switching from Digits to Firebase, so this is the corresponding section of the gradle file:
compile 'com.google.firebase:firebase-auth:11.0.1'
compile 'com.firebaseui:firebase-ui-auth:2.0.1'
compile 'com.firebase:digitsmigrationhelpers:0.1.1'
compile 'com.google.android.gms:play-services-auth:11.0.1'
compile('com.crashlytics.sdk.android:crashlytics:2.6.8@aar') {
transitive = true;
}
compile('com.digits.sdk.android:digits:2.0.2@aar') {
transitive = true;
}
And this is how I initialize Fabric:
if (Constants.DEBUG)
Fabric.with(context, new TwitterCore(authConfig), new Digits.Builder().withTheme(R.style.CustomDigitsTheme).build());
else
Fabric.with(context, new TwitterCore(authConfig), new Digits.Builder().withTheme(R.style.CustomDigitsTheme).build(), new Crashlytics());
However, I get the following error while gradle synchronizing when Constants.DEBUG is true (deleting the Digits object in Fabric init does not affect this problem):
Error:Execution failed for task ':app:fabricGenerateResourcesDebug'.
> Crashlytics Developer Tools error.
(Here is the pastebin from stacktrace )
Removing Crashlytics dependencies temporarily resolves this issue. Is there a dependency conflict or is it a mistake?
crashlytics.properties ( fabric.properties). , gradle.
: , Crashlytics , 'com.firebaseui: firebase-ui-auth: 2.0.1' , , gradle.
2: , . stacktrace, , :
java.lang.IllegalArgumentException: Crashlytics found an invalid API key: @string/twitter_consumer_secret.
, , , , 'com.firebaseui: firebase-ui-auth: 2.0.1'.