Android Studio 更新后。无法解析 POM,无法解析配置“:app:_internal_aapt2_binary”的所有文件
After Android Studio update. Could not parse POM, Could not resolve all files for configuration ':app:_internal_aapt2_binary'
你好,我一直在寻找关于这个问题的其他类似问题,但是 none 到目前为止对我有帮助,在我更新到 android studio 到新版本 3.6.2 之后,我有这个当我尝试 运行 任何项目时出错。
运行 信息:
任务“:app:mergeDebugResources”执行失败。
Could not resolve all files for configuration ':app:_internal_aapt2_binary'.
Could not resolve com.android.tools.build:aapt2:3.6.2-6040484.
Required by:
project :app
Could not resolve com.android.tools.build:aapt2:3.6.2-6040484.
Could not parse POM https://dl.google.com/dl/android/maven2/com/android/tools/build/aapt2/3.6.2-6040484/aapt2-3.6.2-6040484.pom
Content is not allowed in prolog.
在更新之前,项目现在能够构建 none 我的项目构建。
我尝试使缓存无效并重新启动,我检查我没有 运行 处于离线模式。仍然有同样的失败。知道这可能是什么以及我该如何解决它吗?
如果您对 gradle 有疑问
将您的 android stadio 版本更改为 3.6.2 或更低版本
文件>项目结构>
更改为 3.6.2 并确定
我通过转到我的用户名并删除 .gradle、.AndroidStudio3.6 和 .AndroidStudio3.5 文件夹来修复错误。在我重新启动 android studio 以再次下载文件夹并重置它们之后。成功了。
你好,我一直在寻找关于这个问题的其他类似问题,但是 none 到目前为止对我有帮助,在我更新到 android studio 到新版本 3.6.2 之后,我有这个当我尝试 运行 任何项目时出错。
运行 信息:
任务“:app:mergeDebugResources”执行失败。
Could not resolve all files for configuration ':app:_internal_aapt2_binary'. Could not resolve com.android.tools.build:aapt2:3.6.2-6040484. Required by: project :app Could not resolve com.android.tools.build:aapt2:3.6.2-6040484. Could not parse POM https://dl.google.com/dl/android/maven2/com/android/tools/build/aapt2/3.6.2-6040484/aapt2-3.6.2-6040484.pom Content is not allowed in prolog.
在更新之前,项目现在能够构建 none 我的项目构建。 我尝试使缓存无效并重新启动,我检查我没有 运行 处于离线模式。仍然有同样的失败。知道这可能是什么以及我该如何解决它吗?
如果您对 gradle 有疑问 将您的 android stadio 版本更改为 3.6.2 或更低版本
文件>项目结构> 更改为 3.6.2 并确定
我通过转到我的用户名并删除 .gradle、.AndroidStudio3.6 和 .AndroidStudio3.5 文件夹来修复错误。在我重新启动 android studio 以再次下载文件夹并重置它们之后。成功了。