Android Bugs——Error:java.lang.RuntimeException: Some file crunching failed, see logs for details
Error:
Error:java.lang.RuntimeException: Some file crunching failed, see logs for details
原因:
構建Gradle的時候,Gradle會去檢查一下是否修改過檔案的字尾名。一般大多數是出現在圖片上,.jpg修改成了.png就會出現這個問題;
解決方法:
如果是這個問題導致的,可以在build.gradle檔案裡新增以下程式碼,然後點選右上角的sync now同步一下即可。
這個的意思是關掉AndroidStudio對PNG圖片的合法性檢驗。
aaptOptions {
cruncherEnabled = false
useNewCruncher = false
}
再或者你就換張圖片,保證圖片沒問題吧,就是這麼簡單粗暴,哈哈。
相關文章
- AAPT2 error: check logs for detailsAPTErrorAI
- An error occurred while updating the entries. See the inner exception for details.ErrorWhileExceptionAI
- 錯誤Error during artifact deployment. See server log for details.ErrorServerAI
- 解決idea匯入maven專案報Unable to import maven project: See logs for details問題IdeaMavenImportProjectAI
- Android Bugs—— Error:In declare-styleable FontFamilyFont, unable to find attribute android:fontAndroidError
- git push報錯error: failed to push some refs to 'git@github.com:ErrorAIGithub
- Error:java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to meErrorJavaExceptionAndroidUIHive
- git push origin master 時出現報錯 error: src refspec master does not match any error: failed to push someGitASTErrorAI
- nginx: [error] open() “/var/run/nginx/nginx.pid“ failed (2: No such file or directory)NginxErrorAI
- Github錯誤之failed to push some refs toGithubAI
- 【ERROR】OPatch failed with error code 73ErrorAI
- OPatch failed with error code 73AIError
- Android Studio報錯:ERROR: Failed to resolve: com.android.support:appcompat-v7:28.0.+AndroidErrorAIAPP
- java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerExceptioJavaExceptionAndroidUIHive
- java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerJavaExceptionAndroidUIHive
- mac scrcpy 報錯 does not exist or is not a regular file,ERROR: Server connection failed(scrcpy mac與極空間衝突)MacErrorServerAI
- Solaris syntax error: unexpected end of fileError
- Error: Connection activation failed: Device not managed by NetworkManagerErrorAIdev
- 【AndroidStudio】Error:Execution failed for task ':app:preDebugAndroidTestBuild'.AndroidErrorAIAPPUI
- Android resource linking failedAndroidAI
- Binary XML file line #2: Error inflatingXMLError
- psql: error: could not connect to server: No such file or directorySQLErrorServer
- ERROR: Failed to resolve: org.greenrobot:eventbus:2.4.0ErrorAI
- weblogic報錯: OPatch failed with error code 73WebAIError
- FATAL - Fatal error: Target Interaction Manager failed at StartupErrorAI
- git上傳大檔案!git push 報錯 ! [remote rejected] main -> main (pre-receive hook declined) error_ failed to push some refs to 'xxxGitREMAIHookError
- [鴻蒙開發]真機轉模擬機執行出現錯誤: ERROR: Failed to find the incremental input file:鴻蒙ErrorAIREM
- 4.intellij IDEA Artifact /war exploded/ Error during artifact deployment. See seIntelliJIdeaError
- git error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500GitErrorRPCAIHTTP
- 簡易的解決方式linker command failed with exit code 1 (use -v to see invocation)AI
- 初次使用Android Studio 3.0匯入已有工程時,出現Failed to load Appcompat Actionbar with unknown errorAndroidAIAPPError
- 解決 yum clean all Error rpmdb open failedErrorAI
- PSQLException: ERROR: failed to find conversion function from unknown to charSQLExceptionErrorAIFunction
- fatal error: libmemcached/memcached.h: No such file or directoryErrorIBM
- fatal error: openssl/sha.h: No such file or directoryError
- fatal error: sys/cdefs.h: No such file or directoryError
- error: #error This file requires compiler and library support for the ISO C++ 2011 standard.ErrorUICompileC++
- Understanding Buffer Overflow Bugs