use of com.android.tools.idea.gradle.project.sync.validation.android.AndroidModuleValidator in project android by JetBrains.
the class AndroidModuleModelDataService method importData.
@Override
protected void importData(@NotNull Collection<DataNode<AndroidModuleModel>> toImport, @NotNull Project project, @NotNull IdeModifiableModelsProvider modelsProvider, @NotNull Map<String, AndroidModuleModel> modelsByName) {
AndroidModuleValidator moduleValidator = myModuleValidatorFactory.create(project);
for (Module module : modelsProvider.getModules()) {
AndroidModuleModel androidModel = modelsByName.get(module.getName());
setUpModule(module, moduleValidator, modelsProvider, androidModel);
}
if (!modelsByName.isEmpty()) {
moduleValidator.fixAndReportFoundIssues();
}
}
Aggregations