Skip to content

Commit 667f1bd

Browse files
committed
[LOCAL] Add an afterEvaluate to solve AGP 4.1.x configuration resolution
1 parent eef9542 commit 667f1bd

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
@@ -355,10 +355,14 @@ afterEvaluate {
355355
// As using plain "+" dependencies causes Gradle to always download the latest,
356356
// this logic forces Gradle to use latest release in the minor series.
357357
project.rootProject.allprojects {
358-
configurations.all {
359-
resolutionStrategy {
360-
force "com.facebook.react:react-native:0.64.+"
361-
force "com.facebook.react:hermes-engine:0.64.+"
358+
// This extra afterEvaluate is needed due to how AGP 4.1.x is resolving
359+
// Gradle configurations.
360+
afterEvaluate {
361+
configurations.all {
362+
resolutionStrategy {
363+
force "com.facebook.react:react-native:0.64.+"
364+
force "com.facebook.react:hermes-engine:0.64.+"
365+
}
362366
}
363367
}
364368
}

0 commit comments

Comments
 (0)