diff --git a/packages/flutter_tools/templates/app/.idea/libraries/KotlinJavaRuntime.xml.tmpl b/packages/flutter_tools/templates/app/.idea/libraries/KotlinJavaRuntime.xml.tmpl
new file mode 100644
index 0000000000..2b96ac4b75
--- /dev/null
+++ b/packages/flutter_tools/templates/app/.idea/libraries/KotlinJavaRuntime.xml.tmpl
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/packages/flutter_tools/templates/app/.idea/modules.xml.tmpl b/packages/flutter_tools/templates/app/.idea/modules.xml.tmpl
index cd52175288..25d6f39bd3 100644
--- a/packages/flutter_tools/templates/app/.idea/modules.xml.tmpl
+++ b/packages/flutter_tools/templates/app/.idea/modules.xml.tmpl
@@ -3,7 +3,7 @@
-
+
diff --git a/packages/flutter_tools/templates/app/android-java.tmpl/projectName_android.iml.tmpl b/packages/flutter_tools/templates/app/android-java.tmpl/projectName_android.iml.tmpl
new file mode 100644
index 0000000000..5729bef854
--- /dev/null
+++ b/packages/flutter_tools/templates/app/android-java.tmpl/projectName_android.iml.tmpl
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/packages/flutter_tools/templates/app/android-kotlin.tmpl/projectName_android.iml.tmpl b/packages/flutter_tools/templates/app/android-kotlin.tmpl/projectName_android.iml.tmpl
new file mode 100644
index 0000000000..f454a0805e
--- /dev/null
+++ b/packages/flutter_tools/templates/app/android-kotlin.tmpl/projectName_android.iml.tmpl
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/packages/flutter_tools/templates/app/projectName_android.iml.tmpl b/packages/flutter_tools/templates/app/projectName_android.iml.tmpl
deleted file mode 100644
index 861710e838..0000000000
--- a/packages/flutter_tools/templates/app/projectName_android.iml.tmpl
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/packages/flutter_tools/templates/plugin/.idea/modules.xml.tmpl b/packages/flutter_tools/templates/plugin/.idea/modules.xml.tmpl
index cd52175288..fa2d48f222 100644
--- a/packages/flutter_tools/templates/plugin/.idea/modules.xml.tmpl
+++ b/packages/flutter_tools/templates/plugin/.idea/modules.xml.tmpl
@@ -3,7 +3,8 @@
-
+
+
diff --git a/packages/flutter_tools/templates/plugin/android-java.tmpl/projectName_android.iml.tmpl b/packages/flutter_tools/templates/plugin/android-java.tmpl/projectName_android.iml.tmpl
new file mode 100644
index 0000000000..a56f0d75d3
--- /dev/null
+++ b/packages/flutter_tools/templates/plugin/android-java.tmpl/projectName_android.iml.tmpl
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/packages/flutter_tools/templates/plugin/android-kotlin.tmpl/projectName_android.iml.tmpl b/packages/flutter_tools/templates/plugin/android-kotlin.tmpl/projectName_android.iml.tmpl
new file mode 100644
index 0000000000..5ab550e9e6
--- /dev/null
+++ b/packages/flutter_tools/templates/plugin/android-kotlin.tmpl/projectName_android.iml.tmpl
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/packages/flutter_tools/templates/plugin/projectName_android.iml.tmpl b/packages/flutter_tools/templates/plugin/projectName_android.iml.tmpl
deleted file mode 100644
index 09bc7b848c..0000000000
--- a/packages/flutter_tools/templates/plugin/projectName_android.iml.tmpl
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/packages/flutter_tools/test/commands/create_test.dart b/packages/flutter_tools/test/commands/create_test.dart
index 1c7207132f..bdb26cd20b 100644
--- a/packages/flutter_tools/test/commands/create_test.dart
+++ b/packages/flutter_tools/test/commands/create_test.dart
@@ -207,6 +207,7 @@ void main() {
'ios/Runner/AppDelegate.swift',
'ios/Runner/Runner-Bridging-Header.h',
'lib/main.dart',
+ '.idea/libraries/KotlinJavaRuntime.xml',
],
unexpectedPaths: [
'android/app/src/main/java/com/example/flutterproject/MainActivity.java',