我正在尝试将SurveyMonkey集成到我正在构建的应用程序中。我注册了一个免费的SurveyMonkey帐户,并创建了一个样本调查问题。我还根据需要设置了Mobile SDK Collector。我按照GitHub页面(https://github.com/SurveyMonkey/surveymonkey-android-sdk)上概述的步骤进行了项目设置。我复制/粘贴了简单的应用程序,并用我自己的替换了Survey Hash。当我尝试启动调查时,该调查拒绝启动并收到以下错误:

com.surveymonkey.surveymonkeyandroidsdk.SMFeedbackActivity has leaked IntentReceiver com.surveymonkey.surveymonkeyandroidsdk.SMFeedbackActivity$ConnectivityMonitor@19aceecc that was originally registered here. Are you missing a call to unregisterReceiver()?
android.app.IntentReceiverLeaked: Activity com.surveymonkey.surveymonkeyandroidsdk.SMFeedbackActivity has leaked IntentReceiver com.surveymonkey.surveymonkeyandroidsdk.SMFeedbackActivity$ConnectivityMonitor@19aceecc that was originally registered here. Are you missing a call to unregisterReceiver()?
at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:960)
at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:761)
at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:2003)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1983)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1977)
at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:503)
at com.surveymonkey.surveymonkeyandroidsdk.SMFeedbackActivity.onCreate(SMFeedbackActivity.java:67)
at android.app.Activity.performCreate(Activity.java:6221)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2614)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
at android.app.ActivityThread.access$900(ActivityThread.java:172)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1421)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5835)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)


我浏览了API文档,试图找出该错误。我想念什么?

最佳答案

TEK292,谢谢您的帖子!我是负责SDK的SurveyMonkey工程师。我刚刚在我们的Github上发布了新版本的SDK,该版本应该可以解决您的问题。如果没有,请随时通过Github问题或通过进一步评论此帖子与我们联系。再次感谢。

关于android - 无法使SurveyMonkey Mobile SDK正常工作,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/35631101/

10-12 04:37