问题描述
不知怎的,我在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.
-
出了什么问题:
执行失败task':app:mergeDebugResources'。What went wrong:Execution failed for task ':app:mergeDebugResources'.
-
尝试:
运行--info或 - -debug选项以获取更多日志输出。使用--scan运行以获得完整的见解。 Try: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
推荐答案
buildscript { repositories { google() // important! jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.2.0-alpha17' } } allprojects { repositories { google() // important! jcenter() } }
这篇关于错误:java.util.concurrent.ExecutionException:com.android.builder.internal.aapt.v2.Aapt2Exception:在Windows 10上编译时出现AAPT2错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!