• Register
0 votes

Problem :

I am facing the gradle error at the building from few days it just came randomly.

My project depends on the multiple libraries and it built without the problems until few days (even with a libraries)

compile 'com.google.android.gms:play-services:3.1.36'
compile 'com.android.support:support-v4:13.0.0'
compile project(":libs:DatabaseCreationHelper")
compile project(":libs:actionbarsherlock")

Anyone has an idea how to fix the below error? It just randomly came... stacktrace as below:

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':ItchyFeet:processDebugManifest'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:70)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:50)
at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:40)
at org.gradle.api.internal.changedetection.state.CacheLockReleasingTaskExecuter$1.run(CacheLockReleasingTaskExecuter.java:40)
at org.gradle.internal.Factories$1.create(Factories.java:26)


7 5 2
3,870 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

Found a solution to your problem as given below:

The gradle assemble -info gave me a hint that my Manifests have the different SDK Versions and so cannot be merged.

So I needed to edit the Manifests and build.gradle file and after that everything worked again.

To be very clear you need to edit your uses-sdk in your AndroidManifest.xml

<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="16" />

And your android section, particularly the  minSdkVersion and targetSdkVersion in your build.gradle file as shown below.

android {

    compileSdkVersion 17

    buildToolsVersion "17.0.0"

    defaultConfig {

        minSdkVersion 14

        targetSdkVersion 16




I also faced the same issue while adding ActionBarShelock to my project, by comparing to my older library I found that the application tag is missing in my manifest. So just by adding the one line I fixed the issue.

9 7 4
38,600 points

Related questions

0 votes
2 answers 1.2K views
Problem : Currently I am using the Android Studio 2.1 but when I try to run it the suddenly my App shows me the below error Message my Gradle Build saying the following Exception is: org.gradle. ... .execute(SkipEmptySourceFilesTaskExec uter.java:52) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.j ava:52)
asked Jan 31, 2020 jwilliam 3.9k points
0 votes
1 answer 2 views
Problem What should I do to solve this problem, "org.gradle.api.tasks.taskexecutionexception: execution failed for task :app:mergedebugresources?"
asked Apr 7 salim1 39k points
0 votes
1 answer 28 views
Problem: execution failed for task ':app:compiledebugjavawithjavac'
asked Feb 18 charles mathews 5.5k points
0 votes
1 answer 43 views
Problem : I am new to Android Programming. I have started working on it recently. Now I am facing below error message. Error:Execution failed for task ':app:transformClassesWithDexForDebug'. com.android.build.transform.api.TransformException: com.android.ide.common. ... have added too many Gradle dependencies, but all those dependencies are important for my project. Have anybody faced this issue?
asked Feb 28, 2020 mphil 2.3k points
0 votes
1 answer 20 views
Problem: warning:unable to find optional library: org.apache.http.legacy
asked Feb 21 charles mathews 5.5k points
0 votes
1 answer 86 views
Problem : Recently I had preinstalled my laptop and then switched to Windows 10. Before that I had saved my project in the Android Studio 2.2.3 and then I downloaded the same version of the Android Studio after I completed the preinstallation of my laptop, but if I ... . Blockquote I had tried all of the steps mentioned by Android Studio to resolve the error but I am still facing the same issue.
asked Feb 22, 2020 mphil 2.3k points
0 votes
1 answer 7 views
Problem: how can solve this question please solve it... the two build files generated by android studio are in ________________.
asked Apr 1 Ifra 24.4k points
0 votes
1 answer 99 views
Problem: re-download dependencies and sync project (requires network)
asked Feb 16 Ethan ross 2.7k points
0 votes
1 answer 6 views
Problem: I am just getting the critical error message(org.gradle.api.projectconfigurationexception: A problem occurred configuring project ':app'). Does anyone know how to fix it?
asked Mar 30 zayed1 35.6k points
0 votes
2 answers 104 views
Problem : I have already replaced every occurrence of a compile by implementation in the project's build.gradle, but I am still facing below warning : &ldquo;Warning: configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'&rdquo; I also tried to look for a "compile" in a whole project but no match was found. So what is the cause of the warning?
asked Jan 30, 2020 jwilliam 3.9k points