Error: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException:

后端 未结 7 2173
闹比i
闹比i 2020-12-31 11:12

This is the output of my gradle console please help me out to solve this error, I am unable to build my project

Information:Gradle tasks [:facebook:generate         


        
相关标签:
7条回答
  • 2020-12-31 11:39

    Try checking all the recentenly added 9patch files. they all must have the content markers on the 4 sides of the image

    0 讨论(0)
  • 2020-12-31 11:42

    most of the time is a corrupt PNG image added recently to the project which cause this error. Check the git log and replace the file.

    Sometimes menu : File > InvalidateCaches/Restart also helps

    0 讨论(0)
  • 2020-12-31 11:44

    I used the Invalidate Cache and Restart Invalidate Cache and Restart option in android studio and it worked for me.

    0 讨论(0)
  • 2020-12-31 11:46

    I created a 9-Patch file according to https://developer.android.com/studio/write/draw9patch.html, as a result of that, I faced the same error.

    I had drew just the parts I wanted to stretch, but not the entire line.

    To fix it I drew the entire right and bottom lines of the 9-patch, and the parts I wanted to stretch I did it on the left and top lines.

    0 讨论(0)
  • 2020-12-31 11:58

    I once accidently added .gif file in drawable folder, and faced this issue, if you find any unwanted file in drawable foalder.

    Follow the following steps:-

    • Remove all such files which are not recognised by drawable foalder (.gif, 9-patch, etc).
    • Close android studio and start it again
    • Clean and build project again

    You are good to go again!

    0 讨论(0)
  • 2020-12-31 12:04

    A temporary solution is to place the code below in the module build.gradle:

    android { 
        aaptOptions.cruncherEnabled = false
        aaptOptions.useNewCruncher = false
    }
    

    And Sync the Project.Works for me.`

    0 讨论(0)
提交回复
热议问题