android studio error

网友投稿 948 2022-11-14

android studio error

android  studio  error

Invalid method receiver.: Invalid method receiver.java.lang.IllegalStateException: Invalid method receiver. at com.android.tools.idea.gradle.project.AndroidGradleProjectData.reproxy(AndroidGradleProjectData.java:444) at com.android.tools.idea.gradle.project.AndroidGradleProjectData.reproxy(AndroidGradleProjectData.java:394) at com.android.tools.idea.gradle.project.AndroidGradleProjectData.reproxy(AndroidGradleProjectData.java:437) at com.android.tools.idea.gradle.project.AndroidGradleProjectData.reproxy(AndroidGradleProjectData.java:437) at com.android.tools.idea.gradle.project.AndroidGradleProjectData.reproxy(AndroidGradleProjectData.java:394) at com.android.tools.idea.gradle.project.AndroidGradleProjectData.reproxy(AndroidGradleProjectData.java:437) at com.android.tools.idea.gradle.project.AndroidGradleProjectData.createFrom(AndroidGradleProjectData.java:156) at com.android.tools.idea.gradle.project.AndroidGradleProjectData.save(AndroidGradleProjectData.java:129) at com.android.tools.idea.gradle.project.AndroidGradleProjectComponent.projectClosed(AndroidGradleProjectComponent.java:184) at com.intellij.openapi.project.impl.ProjectImpl.projectClosed(ProjectImpl.java:425) at com.intellij.openapi.project.impl.ProjectImpl.access0(ProjectImpl.java:74) at com.intellij.openapi.project.impl.ProjectImpl$MyProjectManagerListener.projectClosed(ProjectImpl.java:453) at com.intellij.openapi.project.impl.ProjectManagerImpl.projectClosed(ProjectManagerImpl.java:164) at com.intellij.openapi.project.impl.ProjectManagerImpl.fireProjectClosed(ProjectManagerImpl.java:1083) at com.intellij.openapi.project.impl.ProjectManagerImpl.access00(ProjectManagerImpl.java:83) at com.intellij.openapi.project.impl.ProjectManagerImpl.run(ProjectManagerImpl.java:982) at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:984) at com.intellij.openapi.project.impl.ProjectManagerImpl.closeProject(ProjectManagerImpl.java:971) at com.intellij.openapi.project.impl.ProjectManagerImpl.closeAndDispose(ProjectManagerImpl.java:1003) at com.intellij.ide.impl.ProjectUtil.closeAndDispose(ProjectUtil.java:85) at com.intellij.ide.actions.CloseProjectAction.actionPerformed(CloseProjectAction.java:36) at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:164) at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.run(ActionMenuItem.java:266) at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:926) at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:124) at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:236) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018) at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:105) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:308) at javax.swing.AbstractButton.doClick(AbstractButton.java:376) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877) at java.awt.Component.processMouseEvent(Component.java:6505) at javax.swing.JComponent.processMouseEvent(JComponent.java:3320) at java.awt.Component.processEvent(Component.java:6270) at java.awt.Container.processEvent(Container.java:2229) at java.awt.Component.dispatchEventImpl(Component.java:4861) at java.awt.Container.dispatchEventImpl(Container.java:2287) at java.awt.Component.dispatchEvent(Component.java:4687) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422) at java.awt.Container.dispatchEventImpl(Container.java:2273) at java.awt.Window.dispatchEventImpl(Window.java:2719) at java.awt.Component.dispatchEvent(Component.java:4687) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735) at java.awt.EventQueue.access0(EventQueue.java:103) at java.awt.EventQueue.run(EventQueue.java:694) at java.awt.EventQueue.run(EventQueue.java:692) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain.doIntersectionPrivilege(ProtectionDomain.java:76) at java.security.ProtectionDomain.doIntersectionPrivilege(ProtectionDomain.java:87) at java.awt.EventQueue.run(EventQueue.java:708) at java.awt.EventQueue.run(EventQueue.java:706) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:705) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:697) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:520) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.android.tools.idea.gradle.project.AndroidGradleProjectData.reproxy(AndroidGradleProjectData.java:437) ... 67 moreCaused by: org.gradle.tooling.model.UnsupportedMethodException: Unsupported method: AndroidArtifactOutput.versionCode().The version of Gradle you connect to does not support that method.To resolve the problem you can change/upgrade the target version of Gradle you connect to.Alternatively, you can ignore this exception and read other information from the model. at org.gradle.tooling.model.internal.Exceptions.unsupportedMethod(Exceptions.java:33) at org.gradle.tooling.internal.adapter.ProtocolToModelAdapter$InvocationHandlerImpl.invoke(ProtocolToModelAdapter.java:240) at com.sun.proxy.$Proxy77.versionCode(Unknown Source) ... 72 more

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:Centos 7 docker私有仓库的搭建
下一篇:天文漫谈章测试题【第二章】
相关文章

 发表评论

暂时没有评论,来抢沙发吧~