ClassNotFoundException: Didn't find class “android.support.v4.content.FileProvider” after androidx migration

后端 未结 3 1020
梦谈多话
梦谈多话 2021-01-01 08:27

I\'m trying to move to migrate to androidx. I used the migration tool in Android Studio. When I do this I get the following stacktrace when I run my app.

E/A         


        
3条回答
  •  再見小時候
    2021-01-01 08:48

    In manifiest.xml file simply change this

    
    

    To this one

    
    

    Or Simply

    • Go to Refactor (Studio -> Menu -> Refactor)
    • Click the Migrate to AndroidX.
    • it's working.

提交回复
热议问题