Digits.getInstance()
给予NullPointerException
java.lang.NullPointerException: Attempt to invoke virtual method 'com.digits.sdk.android.DigitsClient com.digits.sdk.android.Digits.getDigitsClient()' on a null object reference
我实现了像 -
Fabric.with(this, new TwitterCore(authConfig), new Digits());
mAuthCallback = new AuthCallback() {
@Override
public void success(DigitsSession session, String phoneNumber) {
// Do something with the session
}
@Override
public void failure(DigitsException exception) {
// Do something on failure
}
};