找不到support-v4.jar(com.android.support:support-v4:23.4.0)

时间:2018-06-29 05:05:50

标签: android react-native

我正在使用react-native-webrtc模块运行示例应用程序。我正在尝试在android中运行该应用程序,但出现了这样的错误...

 * What went wrong:
A problem occurred configuring project ':WebRTCModule'.
> Could not find support-v4.jar (com.android.support:support-v4:23.4.0).
  Searched in the following locations:
      https://jcenter.bintray.com/com/android/support/support-v4/23.4.0/support-v4-23.4.0.jar

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 5.673 secs

请给我任何建议... 这是我在此应用程序中使用的模块...

    "react": "~15.4.0",
    "react-native": "0.41.2",
    "react-native-webrtc": "^1.54.7",
    "socket.io-client": "^1.7.2"

1 个答案:

答案 0 :(得分:0)

此问题是由于您的本地SDK版本不符合上述版本(23.4.0),

要解决此问题,请转到android studio程序包管理器并在其中安装23.4.0 SDK版本,否则更新Android studio,并使用最新的SDK版本27。