Didn't find class “com.google.firebase.provider.FirebaseInitProvider”

前端 未结 9 1341
感动是毒
感动是毒 2021-02-14 06:05

Before, my program run well. But When I just updated my Android studio to the latest version (2.2 built on 15-sept-16), I am having the following error. When I built it, it says

9条回答
  •  你的背包
    2021-02-14 06:41

    It seems you have a problem with Over 64K Methods and then tried to resolved it with multiDexEnabled true in build.gradle (app module). But you need to add more than:

    1. add: compile 'com.android.support:multidex:1.0.0' in dependencies of build.gradle

    2. Extends your Application class to MultiDexApplication. and add MultiDex.install(this); in onCreated method of Application class.

    your issue should be resolved

    refer link: https://developer.android.com/studio/build/multidex.html

提交回复
热议问题