android - FirebaseProvider not found even if firebase not added to the project -
i have never added firebase in project , eventhough get
caused by: java.lang.classnotfoundexception: didn't find class "com.google.firebase.provider.firebaseinitprovider" on path: dexpathlist[[zip file "/data/app/com.wma.ozfoodhunter-1.apk"],nativelibrarydirectories=[/data/app-lib/com.wma.ozfoodhunter-1, /system/lib]] @ dalvik.system.basedexclassloader.findclass(basedexclassloader.java:56) @ java.lang.classloader.loadclass(classloader.java:497) @ java.lang.classloader.loadclass(classloader.java:457) @ android.app.activitythread.installprovider(activitythread.java:4762) @ android.app.activitythread.installcontentproviders(activitythread.java:4369) @ android.app.activitythread.handlebindapplication(activitythread.java:4309) @ android.app.activitythread.access$1500(activitythread.java:135) @ android.app.activitythread$h.handlemessage(activitythread.java:1256) @ android.os.handler.dispatchmessage(handler.java:102) @ android.os.looper.loop(looper.java:136) @ android.app.activitythread.main(activitythread.java:5001) @ java.lang.reflect.method.invokenative(native method) @ java.lang.reflect.method.invoke(method.java:515) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:785) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:601) @ dalvik.system.nativestart.main(native method)
and error occurs when run app on kitkat.
when tried search whether have used firebase in project, find firebase in r files.
could explain me why firebase got added in r file, if not used in project.
my gradle is
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.nineoldandroids:library:2.4.0' compile 'com.daimajia.slider:library:1.1.5@aar' compile 'com.android.volley:volley:1.0.0' compile 'com.squareup.picasso:picasso:2.5.2' compile 'com.afollestad:sectioned-recyclerview:0.2.3' compile 'com.daimajia.slider:library:1.1.5@aar' compile 'com.squareup.picasso:picasso:2.5.2' compile 'com.nineoldandroids:library:2.4.0' compile 'com.afollestad:sectioned-recyclerview:0.2.3' compile 'com.android.volley:volley:1.0.0' compile 'com.android.support:appcompat-v7:25.3.0' compile 'com.android.support:design:25.3.0' compile 'me.relex:circleindicator:1.2.2@aar' compile 'com.bignerdranch.android:expandablerecyclerview:3.0.0-rc1' compile 'com.thoughtbot:expandablerecyclerview:1.3' compile 'com.android.support:support-v4:25.3.0' compile 'com.google.code.gson:gson:2.6.2' compile 'com.facebook.fresco:fresco:0.12.0' compile 'com.github.bumptech.glide:glide:3.7.0' compile 'net.hockeyapp.android:hockeysdk:4.0.0' compile 'com.github.paolorotolo:expandableheightlistview:1.0.0' compile 'org.greenrobot:eventbus:3.0.0' compile 'com.google.android.gms:play-services:10.2.0' compile 'com.appyvet:materialrangebar:1.3' compile 'com.android.support:multidex:1.0.1' compile 'com.kofigyan.stateprogressbar:stateprogressbar:0.0.3' compile 'com.squareup.retrofit2:retrofit:2.0.2' compile 'com.squareup.retrofit2:converter-gson:2.0.2' compile 'com.squareup.okhttp3:okhttp:3.0.0-rc1' compile 'com.felipecsl.asymmetricgridview:library:2.0.1' compile 'com.google.android.gms:play-services:9.2.0' compile 'com.google.android.gms:play-services-location:9.2.0' testcompile 'junit:junit:4.12' }
beginning version 9.0, firebase apis became bundled google play services api. when have dependency on:
compile 'com.google.android.gms:play-services:9.2.0'
you of play services apis, including firebase. makes apk needlessly large, increases build time, , requires use of multidex.
you should replace dependency on play-services
specific apis need. listed in table 1 of this documentation.
Comments
Post a Comment