[英]FAILURE: Build failed with an exception. Execution failed for task ':app:mergeDebugResources'
Android Studio is showing this error. Android Studio 显示此错误。 Can't find out what's causing the error.
无法找出导致错误的原因。
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> Could not resolve all files for configuration ':app:_internal_aapt2_binary'.
> Could not download aapt2-windows.jar (com.android.tools.build:aapt2:3.6.2-6040484): No cached version available for offline mode
* 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
The problem is with downloading dependency: Could not download aapt2-windows.jar (com.android.tools.build:aapt2:3.6.2-6040484): No cached version available for offline mode
.问题在于下载依赖项:
Could not download aapt2-windows.jar (com.android.tools.build:aapt2:3.6.2-6040484): No cached version available for offline mode
。 It means that the dependency can't be downloaded because you're in offline mode or you don't have an Internet connection.这意味着无法下载依赖项,因为您处于离线模式或没有 Internet 连接。 Try to turn Gradle's offline mode off, check the Internet connection and try to build again.
尝试关闭 Gradle 的离线模式,检查Internet 连接并尝试再次构建。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.