简体   繁体   English

AAPT2 进程意外退出。 错误输出:

[英]AAPT2 process unexpectedly exit. Error output:

I have this problem in my first java application in android studio 2021.2.1 : when I click Run i get this error image我在 android studio 2021.2.1 中的第一个 java 应用程序中遇到了这个问题:当我单击运行时,我得到了这个错误图像

I tried to upgrade Gradle version and I used this link: https://developer.android.com/studio/releases/gradle-plugin to make sure that the plugin and the gradle versions are suitable but still doesent work .我尝试升级 Gradle 版本并使用此链接: https ://developer.android.com/studio/releases/gradle-plugin 以确保插件和 gradle 版本合适但仍然无法正常工作。 I changed JAVA_HOME variable to: C:\Program Files\Android\Android Studio\jre and none of these solutions is working .我将 JAVA_HOME 变量更改为:C:\Program Files\Android\Android Studio\jre 并且这些解决方案都不起作用。

Update: I disabeled my anti virus Smadav and it worked ;更新:我禁用了我的防病毒 Smadav 并且它有效; it seems that smadav was blocking the process似乎 smadav 阻止了该进程

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM