Skip to content

Commit 473a360

Browse files
committed
[LOCAL] Add an afterEvaluate to solve AGP 3.x configuration resolution
1 parent 28cc286 commit 473a360

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

react.gradle

+8-4
Original file line numberDiff line numberDiff line change
@@ -361,10 +361,14 @@ afterEvaluate {
361361
// As using plain "+" dependencies causes Gradle to always download the latest,
362362
// this logic forces Gradle to use latest release in the minor series.
363363
project.rootProject.allprojects {
364-
configurations.all {
365-
resolutionStrategy {
366-
force "com.facebook.react:react-native:0.63.+"
367-
force "com.facebook.react:hermes-engine:0.63.+"
364+
// This extra afterEvaluate is needed due to how AGP 3.x is resolving
365+
// Gradle configurations.
366+
afterEvaluate {
367+
configurations.all {
368+
resolutionStrategy {
369+
force "com.facebook.react:react-native:0.63.+"
370+
force "com.facebook.react:hermes-engine:0.63.+"
371+
}
368372
}
369373
}
370374
}

0 commit comments

Comments
 (0)