Remove usage of deprecated API to get library table
ProjectLibraryTable is deprecated in favor of LibraryTablesRegistrar.
@@ -65,9 +65,9 @@ import com.intellij.openapi.module.StdModuleTypes;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.roots.ModifiableRootModel;
import com.intellij.openapi.roots.ModuleOrderEntry;
-import com.intellij.openapi.roots.impl.libraries.ProjectLibraryTable;
import com.intellij.openapi.roots.libraries.Library;
import com.intellij.openapi.roots.libraries.LibraryTable;
+import com.intellij.openapi.roots.libraries.LibraryTablesRegistrar;
import com.intellij.openapi.vfs.VfsUtilCore;
import com.intellij.util.concurrency.AppExecutorUtil;
import com.intellij.util.containers.ContainerUtil;
@@ -170,7 +170,7 @@ public class BlazeAndroidProjectStructureSyncer {
// Configure android resource modules
int totalOrderEntries = 0;
Set<File> existingRoots = Sets.newHashSet();
- LibraryTable libraryTable = ProjectLibraryTable.getInstance(project);
+ LibraryTable libraryTable = LibraryTablesRegistrar.getInstance().getLibraryTable(project);
for (AndroidResourceModule androidResourceModule : targetToAndroidResourceModule.values()) {
if (BlazeAndroidWorkspaceImporter.WORKSPACE_RESOURCES_TARGET_KEY.equals(
androidResourceModule.targetKey)) {
