Configuration: Use model provider to access facets
Otherwise newly created Android project may get invalid SDK until the reimport is performed #KT-27193 Fixed
This commit is contained in:
@@ -231,7 +231,7 @@ private val CommonCompilerArguments.ignoredFields: List<String>
|
||||
|
||||
private fun Module.configureSdkIfPossible(compilerArguments: CommonCompilerArguments, modelsProvider: IdeModifiableModelsProvider) {
|
||||
// SDK for Android module is already configured by Android plugin at this point
|
||||
if (isAndroidModule()) return
|
||||
if (isAndroidModule(modelsProvider)) return
|
||||
|
||||
val projectSdk = ProjectRootManager.getInstance(project).projectSdk
|
||||
val allSdks = ProjectJdkTable.getInstance().allJdks
|
||||
|
||||
Reference in New Issue
Block a user