java.lang.ClassNotFoundException: Didn't find class “com.my_app_name.androidx”

后端 未结 1 940
有刺的猬
有刺的猬 2021-01-24 00:15

After attempting to upgrade my Android app from an old version of React Native (0.55.4) to the latest version (0.60.4). Now I am unable to launch my app. It crashes every time I

相关标签:
1条回答
  • 2021-01-24 00:36

    I fixed the problem. I added something to my AndroidManifest.xml that I didn't need to. I copied and pasted this from somewhere else, but it turned out that I didn't need this and was causing the problem:

    <application
        ...
        tools:replace="android:appComponentFactory"
        android:appComponentFactory="androidx"
    >
    

    Removing those lines fixed my problem.

    0 讨论(0)
提交回复
热议问题