Didn't find class “androidx.core.content.FileProvider”

前端 未结 4 1598
天涯浪人
天涯浪人 2021-02-19 09:54

I migrated my app to AndroidX and it\'s crashing on launch on API level 21. My application throws this exception:

10-08          


        
4条回答
  •  隐瞒了意图╮
    2021-02-19 10:53

    It seems that this error came from incomplete configuration of MultiDex in your app. Here you may find the similar issue and here is an article answering it.

    I suggest you to check the following (extending App class helped me):

    Your Application class (App.class, for instance, if you use it) should extend from MultiDexApplication class:

    public class BaseApplication extends MultiDexApplication {}
    

    or if you don't use Application class check your manifest:

    
        
            
                ...
            
        
    

提交回复
热议问题