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

前端 未结 4 1604
天涯浪人
天涯浪人 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:41

    The documentation is outdated; use androidx.multidex for androidx:

    implementation "androidx.multidex:multidex:2.0.1"
    

    AndroidManifest.xml:

    
    
    

    Use the Jetifier when it still uses any com.android.support libraries:

    android.enableJetifier=true
    

提交回复
热议问题