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

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 can not 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

This message never appeared before, I do not know how to solve it.

    
asked by anonymous 30.05.2015 / 23:57

2 answers

1

In your 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"
    }
    
31.05.2015 / 00:19
1

This happens when you are using a library that, in your manifest, requires a minimum version specific to its operation.

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

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

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

Reference: link

    
31.05.2015 / 01:32