i installed Fabric plugin in Android studio. Chose Digits and add some code by suggestions of it. Got this error:
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.digits.sdk.android.DigitsAuthButton.setCallback(com.digits.sdk.android.AuthCallback)' on a null object reference.
So, the problem is here(maybe):
phoneButton.setCallback(new AuthCallback() {
@Override
public void success(DigitsSession digitsSession, String phoneNumber) {
}
@Override
public void failure(DigitsException e) {
}
});
Also i had same problems with Twitter part of plugin. Any ideas? Thank you for attention.
The problem is not with the AuthCallback, your phoneButton object is null, possibly because it wasn't retrieved from the layout properly.