本文介绍了错误:java.util.concurrent.ExecutionException:com.android.builder.internal.aapt.v2.Aapt2Exception:在Windows 10上编译时出现AAPT2错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不知怎的,我在Kali Linux上运行和编译完全正常的android项目,
无法在Windows 10上编译。我已经两次完全删除了整个Android工作室和gradle构建工具并且它被缓存,使项目缓存无效, 等等。
不仅一个项目不会编译,而是任何项目。
我已经新安装和更新了所有SDK工具。

somehow my android project that I ran and compiled completely normal on Kali Linux,can't be compiled on windows 10. I already twice totally removed whole Android studio and gradle build tools and it's cached, invalidating project caches, and so on.Not only that one project won't compile, but any.I have all SDK tools freshly installed and updated.

这是我从java编译器的堆栈跟踪:

Here is my stack trace from java compiler:

FAILURE: Build failed with an exception.



查看更多