Error message (Error:Execution failed for task ':app:processDebugManifest')

Asked

Viewed 4,054 times

3

When I try to emulate the application I’m developing the following error appears.

Error:Execution failed for task ':app:processDebugManifest'.

Manifest Merger failed : uses-sdk:minSdkVersion 3 cannot be smaller than version 9 declared in library /home/any/Androidstudioprojects/Caronasfepi/app/build/Intermediates/exploded-Aar/com.google.android.gms/play-services/7.3.0/Androidmanifest.xml Suggestion: use tools:overrideLibrary="com.google.android.gms.all" to force Usage

Never appeared this message before, do not know how to solve.

  • Try to get into your Manifest of your app and on minSdkVersion , Change 3 and put 9.

2 answers

2


In his build.gradle(Module:app) change the value minSdkVersion to 9 and see if it resolves.

apply plugin: 'com.android.application'

android {
    compileSdkVersion 22
    buildToolsVersion "22.0.1"

    defaultConfig {
        applicationId "com.teste.net.appteste"
        minSdkVersion 9 // alterar aqui!!!!!
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
    }
  • Did it or not ?

  • It worked, thank you very much!

1

This happens when you are using some library that, in its manifesto, requires a specific minimum version for its operation.

In your case, the Google Play Services requires a minimum version from the Android 2.3+ (Gingerbread, API 9)

To solve this, you simply need to change your minSdkVersion to 9 (or more) within its build.gradle:

defaultConfig {
    minSdkVersion 9
    targetSdkVersion 22
    versionCode 1
    versionName "1.0"
}

Reference: https://developers.google.com/android/guides/setup

Browser other questions tagged

You are not signed in. Login or sign up in order to post.