Stuck with Exception Error: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException :?

When I build the project, it shows me the Exception, which is “app: mergeDebugResources” I checked all of my code and build.gradle, as well as the manifest file; I could not understand what the main problem is:

Error: execution completed for task ': app: mergeDebugResources Error: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException:

Here is my darkest file:

<uses-feature android:name="android.hardware.camera" android:required="false" /> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme"> <activity android:name=".dashboard.MainActivity" android:label="@string/app_name"></activity> <activity android:name=".dashboard.SplashActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name=".childActivities.Alphabcha"></activity> <activity android:name=".childActivities.Alphabets"></activity> <activity android:name=".childActivities.Numbers"></activity> <activity android:name=".childActivities.Tables"></activity> <activity android:name=".dashboard.Help"></activity> <activity android:name=".dashboard.AboutUs"></activity> <activity android:name=".childActivities.Rhymes"></activity> <activity android:name=".childActivities.tableSubChilds.Ones"></activity> <activity android:name=".childActivities.tableSubChilds.Two"></activity> <activity android:name=".childActivities.tableSubChilds.Third" android:label="@string/app_name" android:screenOrientation="portrait"></activity> <activity android:name=".childActivities.tableSubChilds.Fourth" android:label="@string/app_name" android:screenOrientation="portrait"></activity> <activity android:name=".childActivities.tableSubChilds.Fifth" android:label="@string/app_name" android:screenOrientation="portrait"></activity> <activity android:name=".childActivities.tableSubChilds.Six" android:label="@string/app_name" android:screenOrientation="portrait"></activity> <activity android:name=".childActivities.tableSubChilds.Seven" android:label="@string/app_name" android:screenOrientation="portrait"></activity> <activity android:name=".childActivities.tableSubChilds.Eight" android:label="@string/app_name" android:screenOrientation="portrait"></activity> <activity android:name=".childActivities.tableSubChilds.Nine" android:label="@string/app_name" android:screenOrientation="portrait"></activity> <activity android:name=".childActivities.tableSubChilds.Ten" android:label="@string/app_name" android:screenOrientation="portrait"></activity> <activity android:name=".childActivities.rhymesSubChilds.Bababl"></activity> <activity android:name=".childActivities.rhymesSubChilds.Hotcross"></activity> <activity android:name=".childActivities.rhymesSubChilds.Twink"></activity> <activity android:name=".childActivities.rhymesSubChilds.Humptydu"></activity> <activity android:name=".childActivities.rhymesSubChilds.Jackjill"></activity> <activity android:name=".childActivities.rhymesSubChilds.Mary"></activity> <activity android:name=".childActivities.Shapes"></activity> </application> 

`

and here is my build.gradle file: `

 lintOptions { checkReleaseBuilds false // Or, if you prefer, you can continue to check for errors in release builds, // but continue the build even when errors are found: abortOnError false } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } packagingOptions { exclude 'META-INF/NOTICE.txt' // will not include NOTICE file exclude 'META-INF/LICENSE.txt' // will not include LICENSE file } 

I do not use jar file in lib in this project. Looking for some useful answer. Thanks in advance.

+5
source share
9 answers

I ran into the same problem. I deleted my paintable file and tried to get it one by one and checked. I checked the XML file where I used it, it showed me an error:

"Unable to load image."

So, there is a problem in the image, I just replaced the old with a new image, and it works!

+1
source

I ran into the same problem. I accidentally deleted my drawing file and tried to get it by doing Ctrl + z. I checked the xml file where I used it, it showed me the error "Could not load image." So, this is a problem in the image, I just deleted the old one and downloaded the new one. It worked!

+11
source

I had this problem.

After some investigation, I found that these are 9 patch images that have been added to the resources folder. The problem was that on this 9th patch I added transparency, by mistake, to the control border (these black borders).

So, after fixing patch 9, which means removing transparency, the problem has been resolved.

+6
source

9 patch images have been added to the project, or problems with file names in the folder with the ability to transfer, try changing the compiled version and the target version and rebuilding the project.

+3
source

I ran into the same issue yesterday, this is an IDE issue, probably because Android Studio forces Gradle Support into the project. Being the same project with fresh sources for Eclipse worked for me. Here's the error log: https://s27.postimg.org/n6nlos2sz/Screenshot_64.png I hope this helps.


Import to eclipse guide

Eclipse setup: https://www.eclipse.org/downloads/packages/eclipse-android-developers/neonm6

Just extract the downloaded package and use the option to import an existing Android project. If he says that the Android SDK is not configured , go to the parameter setting and add the path to the SDK (you can find this in the Android Studio SDK Manager option). Also check which version of the API he needs and install it from the SDK manager.
If you get an error: Failed to resolve the target "Google Inc .: Google API: XX" , install this version from the SDK.
Remember to add the Google APIs package to the list of packages, as the SDK platform package is different from the Google APIs package. link → [HTTPS] s24 [dot] postimg [dot] org / jq 3bgwv39 / Screenshot_66.png
After that, delete the Workspace folder and try to import the project.

+2
source

Error: execution completed for task ': app: mergeDebugResources'.

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

To resolve the types of errors described above, go to the "res" directory and check the downloadable files, drawable-XXXX, etc. for possible .png images. Remove ".9" from .png images. Run the Build / Clean Project, followed by the Build / Rebuild Project.

+2
source

Well, I got this problem because my project was imported from Eclipse into Android Studio and the dependencies were missing in gradle.

I got rid of it after adding

 useLibrary 'org.apache.http.legacy' 

in

 defaultConfig { } 

below

 targetSdkVersion 25 

After that I had to install

 minSdkVersion 9 

In addition, I added the following lines

 aaptOptions.cruncherEnabled = false aaptOptions.useNewCruncher = false 

above

 'defaultConfig' { } 

So it looks like

 android { compileSdkVersion 25 buildToolsVersion '25.0.2' aaptOptions.cruncherEnabled = false aaptOptions.useNewCruncher = false defaultConfig { applicationId "xxx.xxxx.xxxx.xxxx" minSdkVersion 9 targetSdkVersion 25 useLibrary 'org.apache.http.legacy' compileOptions { sourceCompatibility JavaVersion.VERSION_1_5 targetCompatibility JavaVersion.VERSION_1_5 } //remaining code snippet //..... } //remaining code snippet //..... } 

Hope someday this helps someone. Greetings

+1
source

You probably have this error because you imported the project, and the gradle file for this project is slightly different from what usually works in your Android studio.

  • Find "build" in your Android studio, you will see a clean project in the build drop-down list. click on it.
  • If you still have errors and / or when you open the MainActivity.java file, you see that R cannot be resolved. then you need to go to the build.gradle file.
  • Open an existing project that starts / compiles without errors on your Android studio (opens in another window). Now you have 2 projects open on Android studio.
  • Open the build.gradle file (module app) of an existing project and copy everything in this file (everything in the build.gradle file).
  • Go to the project with errors, clean everything in the build.gradle file, and paste the existing project file that you copied and put it here.
  • Create your project or click on “Sync”, which appears in the upper right corner of this build.gradle file, and you're good to go.
+1
source

please check that in your drop-down folder, if there are nine patch images, delete them and then try. It works the same for me.

0
source

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


All Articles