• Register
0 votes
380 views

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

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

    }

}

OR

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.

</application>
9 7 4
38,600 points

Related questions

0 votes
2 answers 676 views
676 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 jwilliam 3.9k points
0 votes
1 answer 25 views
25 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 mphil 2.3k points
0 votes
1 answer 24 views
24 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 mphil 2.3k points
0 votes
2 answers 44 views
44 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 jwilliam 3.9k points
0 votes
1 answer 370 views
370 views
Problem : Recently I have updated to Android Studio 3.1. But my project is not running anymore. I have searched for the solution all over the internet with zero positive results. Below is the error that I get in my Logcat: &ldquo;Java.lang.noclassdeffounderror: ... sdk:4.+'     implementation 'com.parse:parsefacebookutils-v4-android:1.10.3@aar'     implementation 'com.commit451:PhotoView:1.2.4' }
asked Jan 30 jwilliam 3.9k points