Could not find com.android.support:appcompat-v7:25.3.1

前端 未结 8 1986
名媛妹妹
名媛妹妹 2020-12-29 06:16

I suddenly started getting this error when trying to build. This was all working a few weeks ago with no changes that I know of. The issue seems to be related to react

8条回答
  •  梦毁少年i
    2020-12-29 06:37

    To solve this problem:

    1. Open package.json and edit the react version to:

      "react": "16.0.0-alpha.3", "react-native": "0.43.1",

    2. Delete node_modules directory

    3. And re-install npm with the command npm install

    4. In Addition: If you get a app:compileDebugJava ERROR, run react-native upgrade

    (Got the solution from this github page and it worked for me)

提交回复
热议问题