关于Java:Android Studio错误:app:mergeDebugResources

Android studio error: app:mergeDebugResources

我有这个问题
错误:任务':app:mergeDebugResources'的执行失败。

Error: Some file crunching failed, see logs for details

我看到人们说这是因为图像格式,但是我刚刚安装了android studio,但没有上传任何图片,也没有写任何代码,这是在他的起始代码中:

screenshot


第二个是答案,它不接受空格,所以它告诉我更改用户名(这很麻烦),因此在保存我使用的应用程序的路径中,而不是在我的空格中用户名是低线" Doctor_mcmuffing"。


这是2个产生错误的概率:

  • 文件路径最多260个字符。这里是Windows命名文件,路径和命名空间文档的摘录:
  • Maximum Path Length Limitation

    In the Windows API (with some exceptions discussed in the following paragraphs), the maximum length for a path is MAX_PATH, which is defined as 260 characters. A local path is structured in the following order: drive letter, colon, backslash, name components separated by backslashes, and a terminating null character. For example, the maximum path on drive D is"D:\\some 256-character path string" where"" represents the invisible terminating null character for the current system codepage. (The characters < > are used here for visual clarity and cannot be part of a valid path string.)

  • 您的用户名使用的是一些特殊的unicode而不是ascii,例如user?±ame