失败:生成失败,发生异常。
任务':app:mergeDebugResources'的执行失败。
Could not resolve all files for configuration ':app:_internal_aapt2_binary'. Could not resolve com.android.tools.build:aapt2:3.6.0-6040484. Required by: project :app No cached version of com.android.tools.build:aapt2:3.6.0-6040484 available for offline mode. No cached version of com.android.tools.build:aapt2:3.6.0-6040484 available for offline mode.
使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行,以获取更多日志输出。与--scan一起运行以获取完整的见解。
267毫秒内建立失败
5个可执行的任务:1个已执行,4个最新
最佳答案
转到设置/构建,执行,部署/ gradle /,然后取消选中离线工作并再次运行构建
关于android - 如何解决Android Studio中的错误 “FAILURE:Build failed with an exception”?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60433859/