Wait for Android plugin to load before configuring plugin dependency (#70970)

This commit is contained in:
Emmanuel Garcia
2020-11-20 18:03:39 -08:00
committed by GitHub
parent 7a3a29e71f
commit 61dfbfe105
3 changed files with 95 additions and 2 deletions

View File

@@ -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
}
}
}
}