AAPT2过程出乎意料地退出。错误输出:
我在Android Studio 2021.2.1中的第一个Java应用程序中遇到了这个问题:当我单击运行时,我会得到此错误 image
我尝试升级Gradle版本,我使用了此链接: https://developer.android.com/studio/releases/gradle-plugin 以确保插入插件Gradle版本是合适的,但仍然有效。我将java_home变量更改为:c:\ program files \ android \ android Studio \ jre,这些解决方案都无法正常工作。
I have this problem in my first java application in android studio 2021.2.1 : when I click Run i get this error
image
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 . I changed JAVA_HOME variable to: C:\Program Files\Android\Android Studio\jre and none of these solutions is working .
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
更新:我不介绍我的抗病毒Smadav,它起作用了。似乎Smadav阻止了该过程
Update: I disabeled my anti virus Smadav and it worked ; it seems that smadav was blocking the process