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

(89 Views)


Below is the error that is thrown in Console, when you try to Build your 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

Solution:

This issue is caused when there are unwanted files in drawable folder. So the solution is very simple, you just have to remove those unwanted files from drawable folder.

Follow below steps to remove the Error:

  • Remove all files with extensions like .gif, 9-patch, etc and all other similar files which is not recognized by drawable folder.
  • Clean and build project again
  • If the problem still persists, try restarting the Android Studio

If you are still facing the same issue, try below lines in build.gradle file: (This solution is not recommended, but can be used for temporary cases)

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

Solution Worked 2 UpvotesUpvote

        

Solution Didn't Worked 0 DownvotesDownvote



Comments



Search