How to build React-Native with react-native-video in CI?

I am using react-native@0.42.0

with react-native-video@1.0.0

and I cannot create an Android app with CircleCi.

When I use this config:

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"

      

I am getting this error on 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

      

When I use this config:

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

      

I am getting this error on 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

      

When I use this config:

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

      

I am getting this error on 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

      

I don't understand the error message when I specify 23.0.1

AND 25.0.0

. Everything seems to be right in the magazines.

Thanks you

+3
android react-native circleci


source to share


No one has answered this question yet

Check out similar questions:

401
Automatically accept all SDK licenses
317
You have not accepted the license agreements for the following SDK components
101
Could not find Build Tools version 23.0.1
1
Build error: React Native Android
1
Can't find Android Build Tools 23.0.1 using React Native
0
Build error in React Native Android app
0
run-android not working: failed to install app on device, read the above error for
0
Build fails with exception
0
Failed to start react on windows
-2
React native You have not accepted the licenses for the following SDK components



All Articles
Loading...
X
Show
Funny
Dev
Pics