2017-09-12 77 views
2

我有這個問題 錯誤:任務':app:mergeDebugResources'的執行失敗。Android studio error:app:mergeDebugResources

Error: Some file crunching failed, see logs for details

我發現人們告訴,這是因爲圖像格式,但我剛剛安裝的Android工作室我沒有任何圖片上傳到它,或寫任何代碼,它是在他的出發代碼:

screenshot

+0

檢查https://stackoverflow.com/questions/22583418/execution-failed-for-task-appmergedebugresources-android-studio回答 – Audi

+0

[Android Studio:「執行失敗的任務」:app:mergeDebugResources'「如果項目是在驅動器C上創建的:](https://stackoverflow.com/questions/23359572/android-studio-execution-failed-for-task-appmergedebugresources-if-projec) – KDeogharkar

回答

0

這是第2概率,使錯誤:

  1. 最大260個字符的文件路徑。這裏從Windows Naming Files, Paths, and Namespaces documentation摘錄:

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
  • 1

    第二個是答案,它不接受空間,所以它告訴我改變我的用戶名(這顯然是一個麻煩),所以在保存我使用的應用程序的路徑中,而不是我的用戶名中的空格「 Doctor_mcmuffing」。