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

This is the output of my gradle console, please help me solve this error, I can not create my project

Information:Gradle tasks [:facebook:generateDebugSources, :facebook:mockableAndroidJar, :facebook:prepareDebugUnitTestDependencies, :facebook:generateDebugAndroidTestSources, :lagaiKhai:generateDebugSources, :lagaiKhai:mockableAndroidJar, :lagaiKhai:prepareDebugUnitTestDependencies, :lagaiKhai:generateDebugAndroidTestSources] Error:java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error:Execution failed for task ':lagaiKhai:mergeDebugResources'. > Error: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Information:BUILD FAILED Information:Total time: 23.24 secs Information:2 errors Information:0 warnings Information:See complete output in console 
+5
source share
6 answers

I somehow accidentally added a .gif file to a folder with the ability to transfer and ran into this problem if you find any unwanted file in drawable foalder.

Follow these steps: -

  • Delete all such files that are not recognized by drawable foalder (.gif, 9-patch, etc.).
  • Close Android Studio and start it again.
  • Clean and run the project again

You will go well again!

+20
source

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

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

}

And sync Project.Works for me.

+7
source

Try to check all recently added 9patch files. they should all have content markers on 4 sides of the image

+5
source

I created a file with 9 patches in accordance with https://developer.android.com/studio/write/draw9patch.html , as a result, I encountered the same error.

I drew only those parts that I wanted to stretch, but not the entire line.

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

+1
source

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

Invalid cache and reboot

0
source

In most cases, this is a damaged PNG image recently added to the project causing this error. Check the git log and replace the file.

Sometimes the menu: File> InvalidateCaches / Restart also helps

0
source

Source: https://habr.com/ru/post/1262973/


All Articles