2017-04-17 20 views
-1

私はちょうどcom.firebaseuiコンパイル書き込み0.4.3を、私はエラーました:余分なコードなしで"実行タスクに失敗しました ':アプリ:compileDebugJavaWithJavac'":firebase-UI:

Error:Execution failed for task ':app:compileDebugJavaWithJavac'. > Compilation failed; see the compiler error output for details.

を。ちょうどコンパイルして、エラーが出ます。赤い線はcom.android.support.appcompat-v7:25.3.1(サポートライブラリはまったく同じバージョンを使用する必要があります)を示しています。これは何を意味するのでしょうか?

<?apply plugin: 'com.android.application' android 
{ compileSdkVersion 25 buildToolsVersion '25.0.2' defaultConfig { applicationId "com.example.mayur.mahadev" 
minSdkVersion 22 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' 
packagingOptions { exclude 'META-INF/DEPENDENCIES' 
exclude 'META-INF/NOTICE' exclude 
'META-INF/LICENSE' exclude 
'META-INF/LICENSE.txt' exclude 'META-INF/NOTICE.txt' } } 
dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') androidTestCompile('com.android.support.test.espresso:espres‌​so-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' })compile 'com.android.support:appcompat-v7:25.3.1' 
compile 'com.android.support.constraint:constraint-layout:1.0.2' compile 'com.firebase:firebase-client-android:2.5.2' 
compile 'com.firebaseui:firebase-ui:0.4.3' 
compile 'com.google.firebase:firebase-database:10.0.1' testCompile 'junit:junit:4.12' } 
apply plugin: 'com.google.gms.google-services'?> 
+0

こんにちは。あなたの完全なgradleファイルを投稿しますか? –

+0

こんにちはa b。投稿を編集して、コミュニティが正しく読むことができるように、gradleファイルを貼り付けてください。 :) –

+0

Ohh ok okありがとう –

答えて

0

はあなたが64K以上の方法、詳細についてはthis official documentation参照をコンパイルしているので、あなたのアプリにmultidexのサポートを追加する必要があります。

android { 
    defaultConfig { 
     ... 
     minSdkVersion 15 
     targetSdkVersion 25 
     multiDexEnabled true 
    } 
    ... 
} 

dependencies { 
    compile 'com.android.support:multidex:1.0.1' 
} 

がマニフェストに次の行を追加します:

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    package="com.example.myapp"> 
    <application 
      android:name="android.support.multidex.MultiDexApplication" > 
     ... 
    </application> 
</manifest> 

そして、すべてあなたのactivitesにこれらのコードsnipetを追加します。

あなたはアプリレベルであなたのGradleでこれらの2行を追加する必要が

@Override 
    protected void attachBaseContext(Context base) { 
    super.attachBaseContext(base); 
    MultiDex.install(this); 
    } 
+0

作業していませんコンパイルは赤い線を表示します 'com.android.support:multidex:1.0.1' –

関連する問題