我的Android Studio工作正常,但在更新插件后,我得到以下错误。我尝试更新JDK并重新安装Android Studio,但仍然面临同样的错误。
这是同步选项卡错误。
Cause: invalid type code: 1C
这是构建选项卡错误
020-06-04 19:13:09,207 [1650474] ERROR - nsions.impl.ExtensionPointImpl - Android Studio 4.0 Build #AI-193.6911.18.40.6514223
2020-06-04 19:13:09,207 [1650474] ERROR - nsions.impl.ExtensionPointImpl - JDK: 1.8.0_242-release; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o
2020-06-04 19:13:09,207 [1650474] ERROR - nsions.impl.ExtensionPointImpl - OS: Windows 10
2020-06-04 19:13:09,207 [1650474] ERROR - nsions.impl.ExtensionPointImpl - Plugin to blame: CSV Plugin version: 2.11.1
2020-06-04 19:13:09,208 [1650475] ERROR - nsions.impl.ExtensionPointImpl - While loading class net.seesharpsoft.intellij.plugins.csv.CsvFileTypeOverrider: net/seesharpsoft/intellij/plugins/csv/CsvFileTypeOverrider has been compiled by a more recent version of the Java Runtime (class file version 53.0), this version of the Java Runtime only recognizes class file versions up to 52.0 [Plugin: net.seesharpsoft.intellij.plugins.csv]
com.intellij.diagnostic.PluginException: While loading class net.seesharpsoft.intellij.plugins.csv.CsvFileTypeOverrider: net/seesharpsoft/intellij/plugins/csv/CsvFileTypeOverrider has been compiled by a more recent version of the Java Runtime (class file version 53.0), this version of the Java Runtime only recognizes class file versions up to 52.0 [Plugin: net.seesharpsoft.intellij.plugins.csv]
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:223)
at com.intellij.ide.plugins.cl.PluginClassLoader.tryLoadingClass(PluginClassLoader.java:167)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:75)
at java.lang.ClassLoader.loadClass(ClassLoader.java:352)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getImplementationClass(ExtensionComponentAdapter.java:80)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.createInstance(ExtensionComponentAdapter.java:39)
at com.intellij.openapi.extensions.impl.XmlExtensionAdapter.createInstance(XmlExtensionAdapter.java:63)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processAdapter(ExtensionPointImpl.java:442)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processAdapter(ExtensionPointImpl.java:429)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.access$100(ExtensionPointImpl.java:33)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl$1.next(ExtensionPointImpl.java:337)
at com.intellij.openapi.extensions.impl.ExtensionProcessingHelper.computeSafeIfAny(ExtensionProcessingHelper.java:39)
at com.intellij.openapi.extensions.ExtensionPointName.computeSafeIfAny(ExtensionPointName.java:60)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.getFileTypeByFile(FileTypeManagerImpl.java:742)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.getFileTypeByFile(FileTypeManagerImpl.java:736)
at com.intellij.openapi.vfs.VirtualFile.getFileType(VirtualFile.java:328)
at com.intellij.psi.SingleRootFileViewProvider.<init>(SingleRootFileViewProvider.java:59)
at com.intellij.psi.impl.PsiFileFactoryImpl.trySetupPsiForFile(PsiFileFactoryImpl.java:111)
at com.intellij.psi.impl.PsiFileFactoryImpl.createFileFromText(PsiFileFactoryImpl.java:95)
at com.intellij.psi.impl.PsiFileFactoryImpl.createFileFromText(PsiFileFactoryImpl.java:48)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyPsiElementFactoryImpl.createDummyFile(GroovyPsiElementFactoryImpl.java:375)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyPsiElementFactoryImpl.createGroovyFile(GroovyPsiElementFactoryImpl.java:621)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyPsiElementFactoryImpl.createExpressionFromText(GroovyPsiElementFactoryImpl.java:169)
at org.jetbrains.plugins.groovy.lang.psi.GroovyPsiElementFactory.createExpressionFromText(GroovyPsiElementFactory.java:146)
at com.android.tools.idea.gradle.dsl.parser.groovy.GroovyDslUtil.createLiteral(GroovyDslUtil.java:375)
at com.android.tools.idea.gradle.dsl.parser.groovy.GroovyDslParser.convertToPsiElement(GroovyDslParser.java:147)
at com.android.tools.idea.gradle.dsl.parser.elements.FakeElement.lambda$createPsiElement$0(FakeElement.java:66)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:807)
at com.android.tools.idea.gradle.dsl.parser.elements.FakeElement.createPsiElement(FakeElement.java:66)
at com.android.tools.idea.gradle.dsl.parser.elements.FakeElement.produceValue(FakeElement.java:118)
at com.android.tools.idea.gradle.dsl.model.CachedValue.updateValue(CachedValue.java:68)
at com.android.tools.idea.gradle.dsl.model.CachedValue.getValue(CachedValue.java:53)
at com.android.tools.idea.gradle.dsl.parser.elements.GradleDslSimpleExpression.getValue(GradleDslSimpleExpression.java:119)
at com.android.tools.idea.gradle.dsl.model.ext.GradlePropertyModelImpl.extractAndGetValueType(GradlePropertyModelImpl.java:523)
at com.android.tools.idea.gradle.dsl.model.ext.GradlePropertyModelImpl.getValueType(GradlePropertyModelImpl.java:108)
at com.android.tools.idea.gradle.dsl.model.ext.PropertyUtil.resolveModel(PropertyUtil.java:130)
at com.android.tools.idea.gradle.dsl.model.ext.ResolvedPropertyModelImpl.resolveModel(ResolvedPropertyModelImpl.java:245)
at com.android.tools.idea.gradle.dsl.model.ext.ResolvedPropertyModelImpl.toString(ResolvedPropertyModelImpl.java:168)
at com.android.tools.idea.gradle.structure.model.android.PsDeclaredLibraryAndroidDependency.getSpec(PsLibraryAndroidDependency.kt:51)
at com.android.tools.idea.gradle.structure.model.PsDeclaredLibraryDependency$DefaultImpls.toKey(PsLibraryDependency.kt:36)
at com.android.tools.idea.gradle.structure.model.android.PsDeclaredLibraryAndroidDependency.toKey(PsLibraryAndroidDependency.kt:43)
at com.android.tools.idea.gradle.structure.model.PsDeclaredDependencyCollection.refreshParsedDependencies(PsDependencyCollection.kt:176)
at com.android.tools.idea.gradle.structure.model.PsDeclaredDependencyCollection.refresh(PsDependencyCollection.kt:171)
at com.android.tools.idea.gradle.structure.model.android.PsAndroidModule.init(PsAndroidModule.kt:90)
at com.android.tools.idea.gradle.structure.model.PsModuleCollection.update(PsModuleCollection.kt:110)
at com.android.tools.idea.gradle.structure.model.PsModuleCollection.update(PsModuleCollection.kt:38)
at com.android.tools.idea.gradle.structure.model.android.PsCollectionBase.refresh(PsCollectionBase.kt:44)
at com.android.tools.idea.gradle.structure.model.PsProjectImpl.applyChanges(PsProjectImpl.kt:111)
at com.android.tools.idea.gradle.structure.configurables.PsContextImpl.applyChanges(PsContextImpl.kt:218)
at com.android.tools.idea.gradle.structure.configurables.ProjectPerspectiveConfigurable.apply(ProjectPerspectiveConfigurable.kt:49)
at com.android.tools.idea.structure.dialog.ProjectStructureConfigurable.apply(ProjectStructureConfigurable.kt:384)
at com.intellij.openapi.options.newEditor.ConfigurableEditor.apply(ConfigurableEditor.java:324)
at com.intellij.openapi.options.newEditor.ConfigurableEditor.apply(ConfigurableEditor.java:135)
at com.intellij.openapi.options.newEditor.SettingsDialog.applyAndClose(SettingsDialog.java:197)
at com.intellij.openapi.options.newEditor.SettingsDialog.doOKAction(SettingsDialog.java:193)
at com.android.tools.idea.structure.dialog.ProjectStructureConfigurable$showDialog$dialog$1.doOKAction(ProjectStructureConfigurable.kt:294)
at com.intellij.openapi.ui.DialogWrapper$OkAction.doAction(DialogWrapper.java:1881)
at com.intellij.openapi.ui.DialogWrapper$DialogWrapperAction.actionPerformed(DialogWrapper.java:1834)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at com.chrisrm.idea.ui.MTButtonUI$ButtonHighlighter.mouseReleased(MTButtonUI.java:387)
at java.awt.Component.processMouseEvent(Component.java:6550)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3325)
at java.awt.Component.processEvent(Component.java:6315)
at java.awt.Container.processEvent(Container.java:2239)
at java.awt.Component.dispatchEventImpl(Component.java:4899)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Component.dispatchEvent(Component.java:4721)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
at java.awt.Container.dispatchEventImpl(Container.java:2283)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.C
新的Java版本需要新的Gradle版本。转到项目结构,然后更改:
仅此而已。它是固定的。你可以试试。
如果您使用Android Studio 4.0或更高版本,并有如下错误
Cause: invalid type code: 17
Cause: invalid type code: fe
Cause: invalid type code: 13
Cause: invalid type code: 85
或
它说JDK有问题,然后按照以下步骤解决错误。
第1步:首先从项目目录中删除. gradle和. Ide文件夹并重新启动Android Studio。确保它已从回收站中消失。
步骤2:转到项目结构
步骤3:从项目结构窗口的左侧面板中选择SDK位置。
步骤4:转到JDK位置并单击向下箭头,然后选择jre而不是JDK
C:\Program Files\Android\Android Studio\jre
它将解决错误。重新生成项目
注:jre随android studio 4安装而来,但不确定旧版本。
此解决方案适用于我。
这是 JDK 版本太新的问题,如以下行所示:
CsvFileTypeOverrider: net/seesharpsoft/intellij/plugins/csv/CsvFileTypeOverrider has been compiled by a more recent version of the Java Runtime (class file version 53.0), this version of the Java Runtime only recognizes class file versions up to 52.0
我有一个类似的错误,其中Gradle同步立即死亡,原因:无效类型代码:1C
错误。将我安装的开放式 JDK 14 切换到与Android Studio捆绑在一起的集成 JDK 解决了此问题。
要切换JDK版本,请转到文件
我试图发送对象从服务器模块到客户端模块。不幸的是,它抛出错误。有人知道下面的代码有什么问题吗? 来自服务器模块的类 客户端模块中的类看起来相同,但看起来如下所示: 最后一个类,它接受套接字连接:
问题内容: 我的问题是,当它尝试第二次读取对象时,会引发异常: 我第一次发送完全相同的对象消息;但是,当我第二次尝试执行相同的操作时,则会在上面抛出错误。我是否需要重新初始化readObject()方法?我什至打印出了下面一行所接收到的消息对象,它与第一个可以正常工作的实例完全相同。 Object buf = myInput.readObject(); 我假设附加有一些问题,但是附加确实没有用。我
我在尝试在Android Studio上构建项目时遇到此错误。尝试在res/raw/file.dat.上使用二进制文件压缩最终工件时会发生这种情况 这里解释了这样的解决方案:Maven在构建jar时破坏了源/主/资源中的二进制文件 将文件或res/raw文件夹添加到构建时的“false”筛选中。但问题是,我使用JFrog Artictorial配置了我的内部maven存储库,如下所示:https:
问题内容: 我想问问哪段代码在Java中更有效?代码1: 代码2: 我的老师说第二个更好,但我不同意这种观点。 问题答案: 我更喜欢第一个而不是第二个,因为它使循环变量不会影响方法中其余代码。由于它们在循环外部不可见,因此以后不能无意间引用它们。 其他答案也是正确的: 不要 担心这种性能问题。但是,出于代码可读性的原因,并且为了与下一个出现的人交流程序员的意图, 请 考虑一下。这比微优化问题重要得
在applicationContext_dao中,我得到了bean classNameDao,现在我尝试创建一个总线层,并向applicationContext_总线添加两个bean。 问题是 原因:org。springframework。豆。NotWritablePropertyException:bean类[path.model.bus.validator.ClassNameValidator
问题内容: 读取序列化对象时出现错误(java.io.StreamCorruptedException:无效类型代码:00)。这是实现可序列化的类: 这是堆栈跟踪: 有谁知道我如何获得有关该错误的更多信息?还是Java期望哪个对象? 问题答案: 您已经实现了一种递归方法:将实例写入输出流时,它会调用writeObject方法,该方法将写入一个int,然后将该对象写入输出流,再写入一个int,依此类