Error[8]: Undefined offset: 3, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述我使用AndroidStudio3.3.2每次打开项目时,都会出现一条消息:由于批量更新,索引暂停.IDE捕获了一个错误:java.lang.UnsupportedOperationException:Operationisnotsupportedforread-onlycollectionatkotlin.collections.EmptyList.add(Collections.kt)atcom.

我使用Android Studio 3.3.2
每次打开项目时,都会出现一条消息:由于批量更新,索引暂停.

IDE捕获了一个错误:

java.lang.UnsupportedOperationException: Operation is not supported for read-only collection    at kotlin.collections.EmptyList.add(Collections.kt)    at com.androID.tools.IDea.gradle.run.MakeBeforeRunTaskProvIDerUtil.addBeforeRunTaskToConfig(MakeBeforeRunTaskProvIDerUtil.java:109)    at com.androID.tools.IDea.gradle.run.MakeBeforeRunTaskProvIDerUtil.fixConfigurationsMissingBeforeRunTask(MakeBeforeRunTaskProvIDerUtil.java:65)    at com.androID.tools.IDea.gradle.project.FixAndroIDrunconfigurationsAction.actionPerformed(FixAndroIDrunconfigurationsAction.java:75)    at com.intellij.openAPI.actionSystem.ex.ActionUtil.run(ActionUtil.java:255)    at com.intellij.openAPI.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:272)    at com.intellij.openAPI.actionSystem.impl.ActionManagerImpl.lambda$null(ActionManagerImpl.java:1356)    at com.intellij.openAPI.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:195)    at com.intellij.openAPI.actionSystem.impl.ActionManagerImpl.lambda$tryToExecuteNow(ActionManagerImpl.java:1313)    at com.intellij.openAPI.wm.impl.FocusManagerImpl.lambda$doWhenFocusSettlesDown(FocusManagerImpl.java:199)    at com.intellij.util.ui.UIUtil.invokelaterIfNeeded(UIUtil.java:3094)    at com.intellij.IDe.IDeEventQueue.ifFocusEventsInTheQueue(IDeEventQueue.java:189)    at com.intellij.IDe.IDeEventQueue.executeWhenAllFocusEventsleftTheQueue(IDeEventQueue.java:138)    at com.intellij.openAPI.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:190)    at com.intellij.openAPI.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:196)    at com.intellij.openAPI.wm.impl.IDeFocusManagerImpl.doWhenFocusSettlesDown(IDeFocusManagerImpl.java:63)    at com.intellij.openAPI.actionSystem.impl.ActionManagerImpl.tryToExecuteNow(ActionManagerImpl.java:1312)    at com.intellij.openAPI.actionSystem.impl.ActionManagerImpl.lambda$tryToExecute(ActionManagerImpl.java:1297)    at com.intellij.openAPI.actionSystem.impl.ActionManagerImpl.tryToExecute(ActionManagerImpl.java:1300)    at com.androID.tools.IDea.gradle.project.FixAndroIDrunconfigurationsAction.executeAction(FixAndroIDrunconfigurationsAction.java:99)    at com.androID.tools.IDea.gradle.project.FixAndroIDrunconfigurationsAction.perform(FixAndroIDrunconfigurationsAction.java:62)    at com.androID.tools.IDea.gradle.project.runconfigurationChecker.lambda$ensurerunconfigsInvokeBuildfile > InvalIDate Cache & Restart > Just Restart(runconfigurationChecker.java:70)    at com.intellij.openAPI.application.TransactionGuardImpl.run(TransactionGuardImpl.java:315)    at com.intellij.openAPI.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:447)    at com.intellij.openAPI.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:431)    at com.intellij.openAPI.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:415)    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)    at java.awt.EventQueue.access0(EventQueue.java:98)    at java.awt.EventQueue.run(EventQueue.java:715)    at java.awt.EventQueue.run(EventQueue.java:709)    at java.security.AccessController.doPrivileged(Native Method)    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)    at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)    at com.intellij.IDe.IDeEventQueue.defaultdispatchEvent(IDeEventQueue.java:817)    at com.intellij.IDe.IDeEventQueue._dispatchEvent(IDeEventQueue.java:758)    at com.intellij.IDe.IDeEventQueue.dispatchEvent(IDeEventQueue.java:394)    at java.awt.EventdispatchThread.pumpOneEventForFilters(EventdispatchThread.java:201)    at java.awt.EventdispatchThread.pumpEventsForFilter(EventdispatchThread.java:116)    at java.awt.EventdispatchThread.pumpEventsForHIErarchy(EventdispatchThread.java:105)    at java.awt.EventdispatchThread.pumpEvents(EventdispatchThread.java:101)    at java.awt.EventdispatchThread.pumpEvents(EventdispatchThread.java:93)    at java.awt.EventdispatchThread.run(EventdispatchThread.java:82)

我必须转到文件>无效的缓存/重新启动才能解决该问题.
有人知道如何使用无效的缓存修复它吗?

解决方法:

尝试使用新的AndroID Studio版本重新导入您的项目.

另外,请尝试使缓存无效并重新启动.

[+++]

如果此解决方案不起作用,请尝试仅按消息右侧的播放按钮.这件事在我身上发生了很多次.

总结

以上是内存溢出为你收集整理的Android studio:UnsupportedOperationException:不支持 *** 作>对于只读集合全部内容,希望文章能够帮你解决Android studio:UnsupportedOperationException:不支持 *** 作>对于只读集合所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Android studio:UnsupportedOperationException:不支持 *** 作>对于只读集合_app_内存溢出

Android studio:UnsupportedOperationException:不支持 *** 作>对于只读集合

Android studio:UnsupportedOperationException:不支持 *** 作>对于只读集合,第1张

概述我使用AndroidStudio3.3.2每次打开项目时,都会出现一条消息:由于批量更新,索引暂停.IDE捕获了一个错误:java.lang.UnsupportedOperationException:Operationisnotsupportedforread-onlycollectionatkotlin.collections.EmptyList.add(Collections.kt)atcom.

我使用Android Studio 3.3.2
每次打开项目时,都会出现一条消息:由于批量更新,索引暂停.

IDE捕获了一个错误:

java.lang.UnsupportedOperationException: Operation is not supported for read-only collection    at kotlin.collections.EmptyList.add(Collections.kt)    at com.androID.tools.IDea.gradle.run.MakeBeforeRunTaskProvIDerUtil.addBeforeRunTaskToConfig(MakeBeforeRunTaskProvIDerUtil.java:109)    at com.androID.tools.IDea.gradle.run.MakeBeforeRunTaskProvIDerUtil.fixConfigurationsMissingBeforeRunTask(MakeBeforeRunTaskProvIDerUtil.java:65)    at com.androID.tools.IDea.gradle.project.FixAndroIDrunconfigurationsAction.actionPerformed(FixAndroIDrunconfigurationsAction.java:75)    at com.intellij.openAPI.actionSystem.ex.ActionUtil.run(ActionUtil.java:255)    at com.intellij.openAPI.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:272)    at com.intellij.openAPI.actionSystem.impl.ActionManagerImpl.lambda$null(ActionManagerImpl.java:1356)    at com.intellij.openAPI.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:195)    at com.intellij.openAPI.actionSystem.impl.ActionManagerImpl.lambda$tryToExecuteNow(ActionManagerImpl.java:1313)    at com.intellij.openAPI.wm.impl.FocusManagerImpl.lambda$doWhenFocusSettlesDown(FocusManagerImpl.java:199)    at com.intellij.util.ui.UIUtil.invokelaterIfNeeded(UIUtil.java:3094)    at com.intellij.IDe.IDeEventQueue.ifFocusEventsInTheQueue(IDeEventQueue.java:189)    at com.intellij.IDe.IDeEventQueue.executeWhenAllFocusEventsleftTheQueue(IDeEventQueue.java:138)    at com.intellij.openAPI.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:190)    at com.intellij.openAPI.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:196)    at com.intellij.openAPI.wm.impl.IDeFocusManagerImpl.doWhenFocusSettlesDown(IDeFocusManagerImpl.java:63)    at com.intellij.openAPI.actionSystem.impl.ActionManagerImpl.tryToExecuteNow(ActionManagerImpl.java:1312)    at com.intellij.openAPI.actionSystem.impl.ActionManagerImpl.lambda$tryToExecute(ActionManagerImpl.java:1297)    at com.intellij.openAPI.actionSystem.impl.ActionManagerImpl.tryToExecute(ActionManagerImpl.java:1300)    at com.androID.tools.IDea.gradle.project.FixAndroIDrunconfigurationsAction.executeAction(FixAndroIDrunconfigurationsAction.java:99)    at com.androID.tools.IDea.gradle.project.FixAndroIDrunconfigurationsAction.perform(FixAndroIDrunconfigurationsAction.java:62)    at com.androID.tools.IDea.gradle.project.runconfigurationChecker.lambda$ensurerunconfigsInvokeBuildfile > InvalIDate Cache & Restart > Just Restart(runconfigurationChecker.java:70)    at com.intellij.openAPI.application.TransactionGuardImpl.run(TransactionGuardImpl.java:315)    at com.intellij.openAPI.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:447)    at com.intellij.openAPI.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:431)    at com.intellij.openAPI.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:415)    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)    at java.awt.EventQueue.access0(EventQueue.java:98)    at java.awt.EventQueue.run(EventQueue.java:715)    at java.awt.EventQueue.run(EventQueue.java:709)    at java.security.AccessController.doPrivileged(Native Method)    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)    at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)    at com.intellij.IDe.IDeEventQueue.defaultdispatchEvent(IDeEventQueue.java:817)    at com.intellij.IDe.IDeEventQueue._dispatchEvent(IDeEventQueue.java:758)    at com.intellij.IDe.IDeEventQueue.dispatchEvent(IDeEventQueue.java:394)    at java.awt.EventdispatchThread.pumpOneEventForFilters(EventdispatchThread.java:201)    at java.awt.EventdispatchThread.pumpEventsForFilter(EventdispatchThread.java:116)    at java.awt.EventdispatchThread.pumpEventsForHIErarchy(EventdispatchThread.java:105)    at java.awt.EventdispatchThread.pumpEvents(EventdispatchThread.java:101)    at java.awt.EventdispatchThread.pumpEvents(EventdispatchThread.java:93)    at java.awt.EventdispatchThread.run(EventdispatchThread.java:82)

我必须转到文件>无效的缓存/重新启动才能解决该问题.
有人知道如何使用无效的缓存修复它吗?

解决方法:

尝试使用新的AndroID Studio版本重新导入您的项目.

另外,请尝试使缓存无效并重新启动.

如果此解决方案不起作用,请尝试仅按消息右侧的播放按钮.这件事在我身上发生了很多次.

总结

以上是内存溢出为你收集整理的Android studio:UnsupportedOperationException:不支持 *** 作>对于只读集合全部内容,希望文章能够帮你解决Android studio:UnsupportedOperationException:不支持 *** 作>对于只读集合所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1081725.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-27
下一篇 2022-05-27

发表评论

登录后才能评论

评论列表(0条)

保存