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

AIButton fails to initialize after following instructions in Integration.md #101

Open
nshdesai opened this issue Sep 16, 2018 · 0 comments

Comments

@nshdesai
Copy link

E/AndroidRuntime: FATAL EXCEPTION: main
                  Process: com.wordwrite.nsh.wordwrite, PID: 10873
                  java.lang.RuntimeException: Unable to start activity ComponentInfo{com.wordwrite.nsh.wordwrite/com.wordwrite.nsh.wordwrite.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void ai.api.ui.AIButton.initialize(ai.api.android.AIConfiguration)' on a null object reference
                      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2946)
                      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3046)
                      at android.app.ActivityThread.-wrap11(Unknown Source:0)
                      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1688)
                      at android.os.Handler.dispatchMessage(Handler.java:105)
                      at android.os.Looper.loop(Looper.java:164)
                      at android.app.ActivityThread.main(ActivityThread.java:6798)
                      at java.lang.reflect.Method.invoke(Native Method)
                      at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
                   Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void ai.api.ui.AIButton.initialize(ai.api.android.AIConfiguration)' on a null object reference
                      at com.wordwrite.nsh.wordwrite.MainActivity.onCreate(MainActivity.java:30)
                      at android.app.Activity.performCreate(Activity.java:7003)
                      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1230)
                      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2899)
                      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3046) 
                      at android.app.ActivityThread.-wrap11(Unknown Source:0) 
                      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1688) 
                      at android.os.Handler.dispatchMessage(Handler.java:105) 
                      at android.os.Looper.loop(Looper.java:164) 
                      at android.app.ActivityThread.main(ActivityThread.java:6798) 
                      at java.lang.reflect.Method.invoke(Native Method) 
                      at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) 
                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767) 

Above are the log files from the project.
Let me know of any possible solutions. Thanks!

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

1 participant