Wait for Android plugin to load before configuring plugin dependency (#70970)
This commit is contained in:
@@ -363,8 +363,11 @@ class FlutterPlugin implements Plugin<Project> {
|
||||
!doesSupportAndroidPlatform(dependencyProject.projectDir.parentFile.path)) {
|
||||
return
|
||||
}
|
||||
pluginProject.dependencies {
|
||||
implementation dependencyProject
|
||||
// Wait for the Android plugin to load and add the dependency to the plugin project.
|
||||
pluginProject.afterEvaluate {
|
||||
pluginProject.dependencies {
|
||||
implementation dependencyProject
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user