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

标签 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"

最佳答案

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

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

关于android - 找不到 support-v4.jar (com.android.support :support-v4:23. 4.0),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51094645/

相关文章:

reactjs - 您如何使用带样式的组件在 React Native 中为 Text 子项设置样式?

react-native - TextInput 在位于 Modal 中时有时不会聚焦

react-native - 我们如何将 react-navigation 标题的标题居中?

android - StringEntity/string 到 HttpEntity

android - 如何在用户通过按下 Android 中的后退键关闭警报对话框时捕获事件

android - Android 中的抽屉导航滞后

android - 如何在屏幕上按比例显示 4 个图像

android - 不能将 PowerMock 与 Robolectric 一起使用

android.view.ViewRoot$CalledFromWrongThreadException : Only the original thread that created a view hierarchy can touch its views.

javascript - 为什么我在 iOS 模拟器中收到这个奇怪的错误?