Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] not working. Attempt to invoke virtual method 'void com.digits.sd. #49

Open
ivankennethwang opened this issue Jan 25, 2017 · 2 comments

Comments

@ivankennethwang
Copy link

screenshot 2017-01-25 18 10 54

I added the file in MainApplication.java instead of MainActivity.java since I saw all those twitter code there.

@ivankennethwang
Copy link
Author

ivankennethwang commented Jan 25, 2017

Attempt to invoke virtual method 'void com.digits.sdk.android.DigitsEventLogger.loginBegin(com.digits.sdk.android.DigitsEventDetails)' on a null object reference
authImpression
    DigitsEventCollector.java:57
startSignUp
    DigitsClient.java:99
authenticate
    Digits.java:177
launchAuthentication
    DigitsManager.java:77
invoke
    Method.java:-2
invoke
    BaseJavaModule.java:319
invoke
    JavaModuleWrapper.java:158
run
    NativeRunnable.java:-2
handleCallback
    Handler.java:739
dispatchMessage
    Handler.java:95
dispatchMessage
    MessageQueueThreadHandler.java:31
loop
    Looper.java:148
run
    MessageQueueThreadImpl.java:196
run
    Thread.java:818

@kevinneuman
Copy link

I got the same error, this fixed the issue for me:

in MainApplication.java

change

@Override
  public void onCreate() {
    super.onCreate();
      TwitterAuthConfig authConfig = new TwitterAuthConfig(TWITTER_KEY, TWITTER_SECRET);
        Fabric.with(this, new TwitterCore(authConfig), new Digits.Builder().build());
    SoLoader.init(this, /* native exopackage */ false);
  }

to

@Override
  public void onCreate() {
    super.onCreate();
      TwitterAuthConfig authConfig = new TwitterAuthConfig(TWITTER_KEY, TWITTER_SECRET);
        Fabric.with(this, new TwitterCore(authConfig), new Digits());
    SoLoader.init(this, /* native exopackage */ false);
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants