我将react-native@0.42.0
与react-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.1
和25.0.0
时,我不理解错误消息。在日志中,一切似乎都是正确的。
谢谢你