android - 获取根元素必须格式正确。 Android版本中的错误

标签 android maven gradle android-gradle-plugin

我正在尝试构建一个android项目,并不断收到下面的gradle构建错误。
虽然它可以在另一台Mac中正常工作。

[Fatal Error] paycardsrecognizer-1.1.0.pom:2:3: The markup in the document preceding the root element must be well-formed.
 [Fatal Error] onfido-capture-sdk-5.0.0.pom:2:3: The markup in the document preceding the root element must be well-formed.
 [Fatal Error] rootbeer-0.0.7.pom:2:3: The markup in the document preceding the root element must be well-formed.
 [Fatal Error] onfido-capture-sdk-core-5.0.0.pom:2:3: The markup in the document preceding the root element must be well-formed.

最佳答案

我认为这会有所帮助。我已经遇到了这个问题,我在3天前(2020年6月1日)开放的Github上发现了这个问题。
有一个临时解决方案。您可以订阅此问题,以了解将来会发生什么。
https://github.com/faceterteam/PayCards_Android/issues/49

关于android - 获取根元素必须格式正确。 Android版本中的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62192020/

相关文章:

Maven-release-plugin 和 builder-helper 插件

Gradle:使一个项目依赖于多项目构建中另一个项目的输出

android - 如何删除不使用的依赖项?

将 Maven 存储库中的 jars 放入项目 lib 文件夹的 Gradle 任务

android - 无法从 Firebase 控制台下载 google-services.json 文件

java - 无法在Windows 8中安装maven

android - 尝试创建循环显示时出错 : IllegalStateException: cannot start this animation on a detached view

java - 在 Maven 中指定 Java 版本 - 属性和编译器插件之间的差异

java - 页面上出现 NullPointerException

android - 是否有适用于 Android 的开源工作 RDP 客户端?