首页 > 解决方案 > 在 /res/drawable/ 中打开 ic_file.xml 时,Android Studio 4.0 出现问题

问题描述

当我尝试从/res/drawable/文件夹打开任何文件时遇到问题,它开始加载ic_file.xml并且 android studio 关闭,这在我以前版本的 android studio 中没有发生。

android studio 版本为:
Android Studio 4.0
Build # AI-193.6911.18.40.6514223,构建于 2020 年 5 月 20 日
运行时版本:11.0.7 + 8-LTS amd64
VM:Java HotSpot (TM) 64-Bit Server VM by Oracle Corporation
Linux 4.19.0-9-amd64
GC:ParNew,ConcurrentMarkSweep
内存:4062M
内核:4
注册表:ide.new.welcome.screen.force = true
非捆绑插件:com.jetbrains.ChooseRuntime,com.thoughtworks.gauge, org.intellij.plugins.markdown

操作系统:
发行商 ID:Debian
描述:Debian GNU / Linux 10 (buster)
发行版:10
代号:buster

当我从终端运行时./studio.sh,在尝试打开提到的文件夹 /res/drawable/ 中的文件后,我收到此警告:

在此处输入图像描述

Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0  
2020-06-10 12:51:25,437 [   2318]   WARN - llij.ide.plugins.PluginManager - Plugin "Firebase Services" is incompatible (until build 192.SNAPSHOT < AI-193.6911.18.40.6514223)   
2020-06-10 12:51:25,805 [   2686]   WARN - llij.ide.plugins.PluginManager - Plugin "Kotlin" is incompatible (until build 192.SNAPSHOT < AI-193.6911.18.40.6514223)   
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.intellij.util.ReflectionUtil to field sun.awt.X11.XToolkit.awtAppClassName  
WARNING: Please consider reporting this to the maintainers of com.intellij.util.ReflectionUtil  
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations  
WARNING: All illegal access operations will be denied in a future release
2020-06-10 12:51:29,285 [   6166]   WARN - com.intellij.ide.ui.LafManager - List.rowHeight = 0 in Darcula; it may lead to performance degradation   
2020-06-10 12:51:29,286 [   6167]   WARN - com.intellij.ide.ui.LafManager - Table.rowHeight = 0 in Darcula; it may lead to performance degradation   
2020-06-10 12:51:29,286 [   6167]   WARN - com.intellij.ide.ui.LafManager - Tree.rowHeight = 0 in Darcula; it may lead to performance degradation   
2020-06-10 12:51:30,231 [   7112]   WARN - nSystem.impl.ActionManagerImpl - keymap "ReSharper" not found [Plugin: com.android.tools.ndk]   
2020-06-10 12:51:34,850 [  11731]   WARN - .diagnostic.PerformanceWatcher - UI freezed for 6735ms, details saved to /home/lui/.AndroidStudio4.0/system/log/threadDumps-freeze-20200610-125128-AI-193.6911.18.40.6514223-AnnotationInvocationHandler.cloneArray-6sec   
2020-06-10 12:51:51,403 [  28284]   WARN - ugins.textmate.TextMateService - Missing builtin bundles, checked: 
/home/lui/.AndroidStudio4.0/config/plugins/textmate/lib/bundles
/home/lui/android-studio/plugins/textmate/lib/bundles   
2020-06-10 12:51:51,732 [  28613]   WARN - uilder.surface.NlDesignSurface - The mode BOTH is not recognized, use default mode NlScreenMode instead 
2020-06-10 12:51:52,888 [  29769]   WARN - com.intellij.util.xmlb.Binding - no accessors for class org.jetbrains.kotlin.idea.highlighter.KotlinDefaultHighlightingSettingsProvider   
2020-06-10 12:55:42,692 [ 259573]   WARN - com.intellij.util.xmlb.Binding - no accessors for class org.jetbrains.kotlin.idea.scripting.gradle.GradleScriptInputsWatcher$Storage   
2020-06-10 12:55:42,733 [ 259614]   WARN - com.intellij.util.xmlb.Binding - no accessors for class org.jetbrains.kotlin.idea.core.script.configuration.utils.ScriptClassRootsStorage   
2020-06-10 12:55:51,413 [ 268294]   WARN - dering.imagepool.ImagePoolImpl - 0 maxSize for Bucket. This Bucket will not be used.   
Unable to find class android/graphics/ColorSpace  
2020-06-10 12:55:52,562 [ 269443]   WARN - .uipreview.LayoutLibraryLoader - GraphicsJNI: Unable to find class android/graphics/ColorSpace   
Aborted```  

标签: androidandroid-studiographics

解决方案


推荐阅读