2017-02-10 3 views
1

У меня проблема с добавлением интерфейса Firebase Authenttication для моего приложения. Я добавил к моему dependecies приложение файл Gradle и хранилище ткани как here .Я получаю эту ошибку:Пользовательский интерфейс аутентификации Firebase 1.1.1: Ошибка: выполнение выполнено для задачи ': app: processDebugManifest'. > Не удалось слияние манифеста с несколькими ошибками, см. Журналы

Error:Execution failed for task ':app:processDebugManifest'.> Manifest merger failed with multiple errors, see logs

app.gradle (приложение)

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 25 
    buildToolsVersion "25.0.2" 
    defaultConfig { 
     applicationId "com.example.learnwords" 
     minSdkVersion 15 
     targetSdkVersion 25 
     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:25.1.0' 
    compile 'com.android.support:design:25.1.0' 
    compile 'com.android.support:support-v4:25.1.0' 
    compile 'com.google.firebase:firebase-database:10.0.1' 
    compile 'com.google.firebase:firebase-auth:10.0.1' 
    // FirebaseUI Auth only 
    compile 'com.firebaseui:firebase-ui-auth:1.1.1' 
    testCompile 'junit:junit:4.12' 
} 



apply plugin: 'com.google.gms.google-services' 

app.gradle (проект)

// Top-level build file where you can add configuration options common to all sub-projects/modules. 

buildscript { 
    repositories { 
     jcenter() 
    } 
    dependencies { 
     classpath 'com.android.tools.build:gradle:2.2.3' 

     // NOTE: Do not place your application dependencies here; they belong 
     // in the individual module build.gradle files 
     classpath 'com.google.gms:google-services:3.0.0' 
    } 
} 

allprojects { 
    repositories { 
     jcenter() 
     maven { 
      url 'https://maven.fabric.io/public' 
     } 
    } 
} 

task clean(type: Delete) { 
    delete rootProject.buildDir 
} 

Манифест

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

    <application 
     android:allowBackup="true" 
     android:icon="@mipmap/ic_launcher" 
     android:supportsRtl="true" 
     android:theme="@style/AppTheme"> 
     <activity android:name=".AddYourWords" /> 
     <activity 
      android:name=".Navigation" 
      android:label="@string/title_activity_navigation" 
      android:theme="@style/AppTheme.NoActionBar"> 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 

       <category android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 
     </activity> 
     <activity 
      android:name=".FragmentOne" 
      android:label="@string/title_activity_fragment_one" 
      android:theme="@style/AppTheme.NoActionBar" /> 
     <activity android:name=".Learning"></activity> 
    </application> 

</manifest> 
+0

Вы проверили журналы? –

+0

Где это? @MichaelMeyer –

+0

Для тех, кто все еще приезжает сюда, я также выяснял, где находится журнал. Это относится к «нижней лестнице» в студии Android. Там я нашел ясные сообщения об ошибках, которые заставили меня решить мою проблему с явным слиянием ошибок. – morksinaanab

ответ

3

Одна из очевидных проблем слияния, вероятно, вызванные android:supportsRtl="true". Обновите файл AndroidManifest.xml включать инструменты имен:

<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    package="com.your.app.package" 
    xmlns:tools="http://schemas.android.com/tools"> 

А затем добавьте переопределение supportsRTL:

<application 
    android:allowBackup="true" 
    android:icon="@mipmap/ic_launcher" 
    android:label="@string/app_name" 
    android:supportsRtl="true" 
    tools:replace="android:supportsRtl" 

Этот вопрос discussed here.

Опубликовать вывод сборки, чтобы показать все ошибки, чтобы получить дополнительную помощь.

0

добавить как в уровне приложения Gradle вам не хватает ядро ​​.

compile 'com.google.firebase:firebase-auth:9.2.1' 
compile 'com.google.firebase:firebase-core:9.2.0' 

Добавить Google-services.json файл, загруженный с firebase сервера в уровне приложения.

Добавить разрешения Интернета манифеста

<uses-permission android:name="android.permission.INTERNET" /> 
+0

Я добавляю ядро ​​к app.gradle (app). У меня все еще есть ошибка. Правильное разрешение файла JSON и интернет. –

+0

добавьте эти файлы, они будут работать. –

+0

У меня есть google-service.json. Работа базы данных Firebase –

Смежные вопросы

 Смежные вопросы