2017-01-30 3 views
1

Wie Problem zu lösen? Ich bin alles benutzt. Das ist doppelt, aber ich habe alles versucht.java.lang.NoClassDefFoundError: com.google.firebase.FirebaseOptions Ich habe alles versucht außer Lösung, aber ich weiß nicht, Lösung

classpath 'com.android.tools.build:gradle:1.5.0' 
classpath 'com.google.gms:google-services:3.0.0' 

Ich verwende multiDexEnable = true auch

buildscript { 
    repositories { 
    maven { url 'https://maven.fabric.io/public' } 
    } 

dependencies { 
    classpath 'io.fabric.tools:gradle:1.+' 
    } 
} 

apply plugin: 'com.android.application' 
apply plugin: 'io.fabric' 

repositories { 
    maven { url 'https://maven.fabric.io/public' } 
} 

android { 
    compileSdkVersion 23 
    buildToolsVersion "23.0.2" 

    defaultConfig { 
    applicationId "com.agilerise.school" 
    minSdkVersion 11 
    targetSdkVersion 23 
    versionCode 3 
    versionName "1.3" 
    enforceUniquePackageName = false 
    multiDexEnabled true 
    } 
    buildTypes { 
    release { 
     minifyEnabled false 
     proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     resValue "string", "google_maps_api_key", "AIzaSyCPkzR0YESTkV97RaMW0iJvgxuW_2EpfPI" 
    } 
    debug { 
     resValue "string", "google_maps_api_key", "AIzaSyD-rVHRsXJJFcThPFRgyBwKok3qXggMxtM" 
    } 

    } 
    dexOptions { 
    incremental true 
    javaMaxHeapSize "4g" 
    } 
} 

dependencies { 
    compile fileTree(include: ['*.jar'], dir: 'libs') 
    testCompile 'junit:junit:4.12' 
    compile files('libs/gcm.jar') 
    compile files('libs/YouTubeAndroidPlayerApi.jar') 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    compile 'com.android.support:appcompat-v7:23.1.1' 
    compile 'com.android.support:support-v4:+' 

    compile 'com.android.support:cardview-v7:23.1.1' 
    compile 'com.android.support:recyclerview-v7:23.1.1' 
    compile             'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2' 
    compile 'com.android.support:design:23.1.1' 

    compile 'com.google.android.gms:play-services:10.0.1' 
    compile 'com.google.android.gms:play-services-location:10.0.1' 

    compile 'com.jpardogo.googleprogressbar:library:1.2.0' 
    compile 'com.github.traex.rippleeffect:library:1.3' 
    compile 'de.hdodenhof:circleimageview:2.0.0' 
    compile 'com.nineoldandroids:library:2.4.0' 

    compile 'com.daimajia.easing:library:[email protected]' 
    compile 'com.android.support:multidex:1.0.1' 
    compile 'com.daimajia.androidanimations:library:[email protected]' 
    compile('com.crashlytics.sdk.android:crashlytics:[email protected]') { 
    transitive = true; 
    } 
    compile 'com.google.firebase:firebase-messaging:10.0.1' 
} 

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

See PlayService

See PlayService

+0

Bitte beachten Sie diesen Link zum Einrichten von Firebase [link] (https://firebase.google.com/docs/android/setup). In Ihrer GRADLE-Datei müssen Sie nicht das komplette PlayService-Repository laden. Für z. kompilieren 'com.google.android.gms: play-services: 10.0.1' –

+0

wie singale poly store library laden ich benutze google map in meiner app –

+0

hast du deine spieldienste aktualisiert? –

Antwort

0

Verwendung folgende dep in gradle

compile 'com.google.firebase:firebase-messaging:9.2.0' 
compile 'com.google.android.gms:play-services:9.2.0' 
+0

Sie brauchen nicht playservices Abhängigkeiten – suku

1

Fügen Sie die c Lasspath zu build.gradle.

dependencies { 
    classpath 'com.android.tools.build:gradle:2.2.3' 
    classpath 'com.google.gms:google-services:3.0.0' 
} 
+1

Fehler hinzuzufügen: (11, 0) Ursache: com/android/build/gradle/AppPlugin: Nicht unterstützte major.minor Version 52.0 Open File

+0

nach aply dieser Linie –

+0

Ihr Android-Studio ist nicht aktualisiert ... schon nougat ist out und du ziel SDK ist Marshmallow (23) ... Ich denke, Firebase erfordert auch Gradle 2 atleast ... Warum aktualisieren Sie nicht zuerst Ihr Android Studio – suku

Verwandte Themen