如何在CI上使用react-native-video构建React-Native?

时间:2017-03-29 15:18:38

标签: android react-native circleci

我将react-native@0.42.0react-native-video@1.0.0一起使用,我无法使用CircleCi在Android上构建应用。

当我使用此配置时:

dependencies:
  pre:
    - echo y | android update sdk --no-ui --all --filter "tools,platform-tools,android-23"
    - echo y | android update sdk --no-ui --all --filter "build-tools-23.0.1"

我在cd android && ./gradlew app:dependencies上收到此错误:

> A problem occurred configuring project ':react-native-video'.
  > The SDK Build Tools revision (23.0.1) is too low for project ':react-native-video'. Minimum required is 25.0.0

当我使用此配置时:

echo y | android update sdk --no-ui --all --filter "build-tools-25.0.0"

我在cd android && ./gradlew app:dependencies上收到此错误:

> A problem occurred configuring project ':react-native-video'.
  > You have not accepted the license agreements of the following SDK components:
    [Android SDK Build-Tools 23.0.1].
    Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
    Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html

当我使用此配置时:

echo y | android update sdk --no-ui --all --filter "build-tools-25.0.0,build-tools-23.0.1"

我在cd android && ./gradlew app:dependencies上收到此错误:

> A problem occurred configuring project ':react-native-video'.
  > The SDK Build Tools revision (23.0.1) is too low for project ':react-native-video'. Minimum required is 25.0.0

当我指定23.0.125.0.0时,我不理解错误消息。在日志中,一切似乎都是正确的。

谢谢你

0 个答案:

没有答案