集成用于聊天的 Quickblox Android SDK
Integrating Quickblox Android SDK for Chat
我正在尝试将 quickblox 的聊天服务集成到我的应用程序中,我设法添加了所有需要的 类 和布局的库,但是当我 运行 我在这一行得到一个 java.lang.NullPointerException :
int currentVersion = ApplicationSingleton.getInstance().getAppVersion();
我收到这个错误
Caused by: vc908.stickerfactory.p$b: Storage manager not initialized. Use init(...) method before.
at vc908.stickerfactory.p.a(Unknown Source)
at vc908.stickerfactory.utils.KeyboardUtils.getKeyboardHeight(Unknown Source)
at com.superfans.com.superfans.chat.ui.activities.ChatActivity.updateStickersFrameParams(ChatActivity.java:278)
at com.superfans.com.superfans.chat.ui.activities.ChatActivity.initViews(ChatActivity.java:184)
at com.superfans.com.superfans.chat.ui.activities.ChatActivity.onCreate(ChatActivity.java:83)
at android.app.Activity.performCreate(Activity.java:5990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
at android.app.ActivityThread.access0(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
at android.os.Handler.dispatchMessage(Handler.java:102)
在这一行中:
stickersFrame.getLayoutParams().height = vc908.stickerfactory.utils.KeyboardUtils.getKeyboardHeight();
任何人都可以帮助和感谢。
查看 this 关于贴纸集成的指南
你好像忘了
StickersManager.initialize(“847b82c49db21ecec88c510e377b452c", this);
我正在尝试将 quickblox 的聊天服务集成到我的应用程序中,我设法添加了所有需要的 类 和布局的库,但是当我 运行 我在这一行得到一个 java.lang.NullPointerException :
int currentVersion = ApplicationSingleton.getInstance().getAppVersion();
我收到这个错误
Caused by: vc908.stickerfactory.p$b: Storage manager not initialized. Use init(...) method before.
at vc908.stickerfactory.p.a(Unknown Source)
at vc908.stickerfactory.utils.KeyboardUtils.getKeyboardHeight(Unknown Source)
at com.superfans.com.superfans.chat.ui.activities.ChatActivity.updateStickersFrameParams(ChatActivity.java:278)
at com.superfans.com.superfans.chat.ui.activities.ChatActivity.initViews(ChatActivity.java:184)
at com.superfans.com.superfans.chat.ui.activities.ChatActivity.onCreate(ChatActivity.java:83)
at android.app.Activity.performCreate(Activity.java:5990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
at android.app.ActivityThread.access0(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
at android.os.Handler.dispatchMessage(Handler.java:102)
在这一行中:
stickersFrame.getLayoutParams().height = vc908.stickerfactory.utils.KeyboardUtils.getKeyboardHeight();
任何人都可以帮助和感谢。
查看 this 关于贴纸集成的指南
你好像忘了
StickersManager.initialize(“847b82c49db21ecec88c510e377b452c", this);