美好的一天,请为我正在构建的应用程序提供一些帮助。该应用程序基于Android,内置了cordova 9,我将在下面附加程序规范。当应用打开并运行良好时,我在向后导航时遇到了问题,主视图中有一张包含我当前位置的地图,然后我有一个跟踪页面,我可以在其中选择一个朋友,它还可以从中打开另一个具有地图的视图当我尝试转到Mainview应用时屏幕出现故障。
项目规范
Android 9, 科尔多瓦9 HandlebarJS, 谷歌地图科尔多瓦插件, Transistorsoft Geolocation插件
任何想法或解决方案将不胜感激,如果我遗漏了一些东西,请让我知道我会很乐意提供。
日志
Process: xxxxxxxxxxxxx.app, PID: 27090
java.lang.RuntimeException: Unable to pause activity {xxxxxxxxxxx.app/xxxxxxxxxx.app.MainActivity}: java.util.ConcurrentModificationException
at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:4681)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:4640)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:4614)
at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:4566)
at android.app.ActivityThread.-wrap16(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2021)
at android.os.Handler.dispatchMessage(Handler.java:109)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7555)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:469)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:963)
Caused by: java.util.ConcurrentModificationException
at java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:757)
at java.util.LinkedHashMap$LinkedValueIterator.next(LinkedHashMap.java:785)
at org.apache.cordova.PluginManager.onPause(PluginManager.java:209)
at org.apache.cordova.CordovaWebViewImpl.handlePause(CordovaWebViewImpl.java:435)
at org.apache.cordova.CordovaActivity.onPause(CordovaActivity.java:245)
at android.app.Activity.performPause(Activity.java:7501)
at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1421)
at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:4663)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:4640)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:4614)
at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:4566)
at android.app.ActivityThread.-wrap16(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2021)
at android.os.Handler.dispatchMessage(Handler.java:109)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7555)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:469)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:963)```