You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Either the community edition (free) or Ultimate will work.
119
119
120
-
2. Create a `gradle.properties` file.
121
-
- In the root directory, create an empty `gradle.properties` file (`touch gradle.properties`)
122
-
- Add the following to the file:
123
-
```
124
-
name = "flutter-intellij"
125
-
buildSpec=2024.3
126
-
flutterPluginVersion=1
127
-
ideaProduct=android-studio
128
-
ideaVersion=2024.3.1.7
129
-
baseVersion=243.22562.59
130
-
dartPluginVersion= 243.21565.120
131
-
androidPluginVersion=
132
-
sinceBuild=243
133
-
untilBuild=253.*
134
-
testing=true
135
-
kotlin.stdlib.default.dependency=false
136
-
org.gradle.parallel=true
137
-
org.gradle.jvmargs=-Xms1024m -Xmx4048m
138
-
```
139
-
- **[Note]** If you want, you can manually change these properties to target different versions of IntelliJ. See `product-matrix.json` to find which configurations are supported.
140
-
141
120
3. Start IntelliJ IDEA with the `flutter-intellij` project.
142
121
- If you see a popup with "Gradle build scripts found",
143
122
**confirm loading the Gradle project, and wait until syncing is done.**
@@ -149,7 +128,7 @@ name and contact info to the [AUTHORS](AUTHORS) file.
149
128
- `cd path/to/flutter-intellij`
150
129
- `dart pub get`
151
130
- `(cd tool/plugin; dart pub get)`
152
-
- `bin/plugin test`
131
+
- `./gradlew test`
153
132
- Note: If there are Dart errors during build originating in the `tool/plugin` directory, try deleting the contents of the `pubspec.lock` file and re-running the pub get steps. This will allow you to get a fresh set of pub packages.
154
133
155
134
### Configure "Project Structure" settings
@@ -193,13 +172,14 @@ name and contact info to the [AUTHORS](AUTHORS) file.
193
172
194
173
5. Configure the modules for the Project
195
174
- Select "Project Settings > Modules"
196
-
- Select the `flutter-intellij> flutter-idea` module
175
+
- Select the `flutter-intellij` module
197
176
- Switch to the "Paths" window
198
177
- Select the **Inherit project compile output path** option, then apply.
178
+
- Do the same for the subdirectories, `main` and `test`.
199
179
200
180
6. Change the modules SDK to the Project SDK
201
181
- Select "Project Settings > Modules"
202
-
- Select all the sub-directories under the `flutter-intellij> flutter-idea` module
182
+
- Select all the subdirectories under the `flutter-intellij` module
203
183
- Switch to the "Dependencies" window
204
184
- Change the "Module SDK" selection to `Project SDK`.
205
185
@@ -255,30 +235,6 @@ name and contact info to the [AUTHORS](AUTHORS) file.
255
235
- Expand `Edit configuration templates...` and verify that Flutter is present.
256
236
- Click [+] and verify that Flutter is present.
257
237
258
-
### Handle symlinks
259
-
260
-
If exceptions like these occurred:
261
-
262
-
```
263
-
A problem occurred configuring project ':flutter-idea'.
264
-
> Source directory 'X:\path\to\your\flutter-intellij\flutter-idea\resources' is not a directory.
265
-
```
266
-
267
-
Check if the directory is a symlink by opening the link in IDEA, and it'll display as:
268
-
269
-
```symlink
270
-
../resources
271
-
```
272
-
273
-
Delete the file, then re-clone the repo using the below command:
0 commit comments