Manifest Merger failed with multiple errors

0

Good afternoon! I am receiving this error and I do not know why it is, I hope you can help me.

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

Manifest merger failed with multiple errors, see logs

AndroidManifest:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.udiaz.chat">

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">

        <activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

    <activity android:name="co.chatsdk.ui.login.LoginActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

    <meta-data android:name="firebase_url" android:value="@string/firebase_url" />
    <meta-data android:name="firebase_root_path" android:value="@string/firebase_root_path" />
    <meta-data android:name="firebase_storage_url" android:value="@string/firebase_storage_url" />
    </application>
</manifest>

This is my build.gradle

    apply plugin: 'com.android.application'

android {
    compileSdkVersion 26
    buildToolsVersion "26.0.2"
    defaultConfig {
        applicationId "com.example.udiaz.chatprueba"
        minSdkVersion 15
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}
dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:26.+'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    testCompile 'junit:junit:4.12'
    compile project(path: ':chat_sdk_ui')
    compile project(path: ':chat_sdk_firebase_push')
    compile 'com.google.firebase:firebase-messaging:9.4.0'
    compile 'com.android.support:multidex:1.0.1'
}
apply plugin: 'com.google.gms.google-services'

This is the log.

  

11-13 14: 05: 19.892 1147-1517 /? E / Drm: Failed to find drm plugin 11-13   14: 05: 23.041 1722-1722 / com.google.android.gms.persistent   E / BluetoothAdapter: Bluetooth binder is null

    
asked by Ulises Díaz 13.11.2017 в 19:20
source

1 answer

1

How did I inform you that my problem was in the gradle?

Merging Errors: Error: uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library /Users/omnius/Desktop/Chatprueba/chat_sdk_firebase_adapter/src/main/AndroidManifest.xml Suggestion: use tools:overrideLibrary="co.chatsdk.firebase" to force usage

had different minSdkVersion. Sorry for the inconvenience but I'm new with Android Studio. Thanks !!

    
answered by 14.11.2017 / 00:28
source