TLDR-Android Studio将不会加载模拟器,并表示云操作不成功,同时显示以下错误消息:
> Task :app:processDebugResources FAILED
Execution failed for task ':app:processDebugResources'.
> Failed to create MD5 hash for file content.
安卓工作室版本:
**Android Studio Arctic Fox | 2020.3.1 Patch 4
Build #AI-203.7717.56.2031.7935034, built on November 20, 2021
Runtime version: 11.0.10+0-b96-7249189 amd64
VM: OpenJDK 64-Bit Server VM by Oracle Corporation
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 1280M
Cores: 8
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: org.jetbrains.kotlin**
开始时,我单击"运行"启动Pixel 5 API 26模拟器并运行我的应用程序,我的计算机被蓝色屏蔽,错误为KMOD_EXCEPTION_NOT_HANDLED,失败的文件为IntegHaxm.sys。
重新启动后,我再试一次,安卓工作室给出了一个不同的错误,我没有复制下来——关于一个损坏的文件。当我开始在谷歌上搜索时,我发现的唯一一件事就是删除.gradle文件并重新构建它。当我再次尝试时,我得到了开头提到的错误。使缓存无效并重新启动后,结果相同。
几天前和现在工作的唯一区别是重新启动计算机,我安装了已经卸载的CPU-Z,安装了HWMonitor来查看CPU温度。
以下是构建日志的其余部分:
Executing tasks: [:app:assembleDebug] in project C:UsersmatthOneDriveSchoolCapstoneModule 8NewProject
AGPBI: {"kind":"warning","text":"We recommend using a newer Android Gradle plugin to use compileSdk = 32nnThis Android Gradle plugin (7.0.4) was tested up to compileSdk = 31nnThis warning can be suppressed by addingn android.suppressUnsupportedCompileSdk=32nto this project's gradle.propertiesnnThe build will continue, but you are strongly encouraged to update your project tonuse a newer Android Gradle Plugin that has been tested with compileSdk = 32","sources":[{}]}
> Task :app:preBuild UP-TO-DATE
> Task :app:preDebugBuild UP-TO-DATE
> Task :app:compileDebugAidl NO-SOURCE
> Task :app:compileDebugRenderscript NO-SOURCE
> Task :app:generateDebugBuildConfig
> Task :app:generateDebugResValues
> Task :app:generateDebugResources
> Task :app:checkDebugAarMetadata
> Task :app:createDebugCompatibleScreenManifests
> Task :app:extractDeepLinksDebug
> Task :app:processDebugMainManifest
> Task :app:mergeDebugResources
> Task :app:processDebugManifest
> Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
> Task :app:mergeDebugShaders
> Task :app:compileDebugShaders NO-SOURCE
> Task :app:generateDebugAssets UP-TO-DATE
> Task :app:javaPreCompileDebug
> Task :app:mergeDebugAssets
> Task :app:compressDebugAssets
> Task :app:processDebugJavaRes NO-SOURCE
> Task :app:desugarDebugFileDependencies
> Task :app:mergeDebugJniLibFolders
> Task :app:checkDebugDuplicateClasses
> Task :app:processDebugManifestForPackage
> Task :app:processDebugResources FAILED
> Task :app:mergeDebugNativeLibs NO-SOURCE
> Task :app:stripDebugDebugSymbols NO-SOURCE
> Task :app:mergeLibDexDebug
> Task :app:validateSigningDebug
> Task :app:writeDebugAppMetadata
> Task :app:writeDebugSigningConfigVersions
> Task :app:mergeExtDexDebug
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Failed to create MD5 hash for file content.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/7.0.2/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 9s
22 actionable tasks: 22 executed
编辑:它在我的笔记本电脑上使用相同的文件(它们通过OneDrive同步)
问题是在BIOS中禁用了VT-x。我忘了更新我的个人简介,一定重置了一个设置。