| 056c6110 | 17-Jun-2023 |
Kudo Chien <[email protected]> |
[android] fix versioned build error (#22949)
# Why
fixed android versioned expo go build error after updating to gradle 8:
```
> Task :packages:react-native:ReactAndroid:buildCMakeDebug[x86_6
[android] fix versioned build error (#22949)
# Why
fixed android versioned expo go build error after updating to gradle 8:
```
> Task :packages:react-native:ReactAndroid:buildCMakeDebug[x86_64][fabricjni,folly_runtime,etc]
FAILURE: Build failed with an exception.
* What went wrong:
A problem was found with the configuration of task ':vendored_sdk47_react-native-reanimated:prepareBoost' (type 'Copy').
- Gradle detected a problem with the following location: '/home/runner/.gradle/react-native-downloads/boost_1_76_0.tar.gz'.
Reason: Task ':vendored_sdk47_react-native-reanimated:prepareBoost' uses this output of task ':packages:react-native:ReactAndroid:downloadBoost' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
Possible solutions:
1. Declare task ':packages:react-native:ReactAndroid:downloadBoost' as an input of ':vendored_sdk47_react-native-reanimated:prepareBoost'.
2. Declare an explicit dependency on ':packages:react-native:ReactAndroid:downloadBoost' from ':vendored_sdk47_react-native-reanimated:prepareBoost' using Task#dependsOn.
3. Declare an explicit dependency on ':packages:react-native:ReactAndroid:downloadBoost' from ':vendored_sdk47_react-native-reanimated:prepareBoost' using Task#mustRunAfter.
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
```
# How
comment out unused code causing gradle dependency error
# Test Plan
android client ci passed
show more ...
|