Skip to content

Commit 7b32dff

Browse files
authored
Fix error when creating Gradle projects when the Android plugin is installed (#3147)
1 parent cffcd18 commit 7b32dff

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "bugfix",
3+
"description" : "Fix 'The project directory does not exist!' when creating SAM/Gradle projects when the Android plugin is also installed"
4+
}

jetbrains-core/src/software/aws/toolkits/jetbrains/services/lambda/java/JavaSamProjectWizard.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ abstract class JavaGradleSamProjectTemplate : JavaSamProjectTemplate() {
9696

9797
val gradleProjectSettings = GradleProjectSettings().apply {
9898
withQualifiedModuleNames()
99-
externalProjectPath = buildFile.path
99+
externalProjectPath = buildFile.parent.path
100100
}
101101

102102
val externalSystemSettings = ExternalSystemApiUtil.getSettings(rootModel.project, GradleConstants.SYSTEM_ID)

0 commit comments

Comments
 (0)