【发布时间】:2021-07-05 17:31:40
【问题描述】:
我是 Flutter 的新手;我创建了一个新项目(代码或文件中没有任何更改),当我尝试运行它时,我收到以下错误消息:
Execution failed for task ':app:mergeDebugResources'.
> Could not resolve all files for configuration ':app:_internal_aapt2_binary'.
> Could not find aapt2-windows.jar (com.android.tools.build:aapt2:3.5.0-5435860).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/build/aapt2/3.5.0-5435860/aapt2-3.5.0-5435860-windows.jar
谁能告诉我怎么了?我曾经运行我的应用程序,没有问题;我不知道发生了什么!奇怪的是,当我点击链接时,我可以手动下载 aapt2-3.5.0-5435860-windows.jar。我知道为什么 gradlew 无法解决它。
ps:我的 gradle.build 是默认文件;什么都没有改变。
【问题讨论】: