after upgrading IntelliJ displays a "Migrate Project to Gradle?" notification
See original GitHub issueAfter upgrading IntelliJ a while back I started getting this message in my Event Log:
20/09/2017 10:36 Migrate Project to Gradle? This project does not use the Gradle build system. We recommend that you migrate to using the Gradle build system. More Information about migrating to Gradle Don’t show this message again.
I created this Flutter project the 8th of September and I am using Gradle (AFAIK) - I have files like android/build.gradle, gradlew and settings.gradle etc. in the project and when I run it in the Android emulator I see references to Gradle:
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
Resolving dependencies...
Running 'gradlew assembleDebug'...
So it seems that the issue here is that IntelliJ is not able to identify that my project is using Gradle.
Steps to Reproduce
Not sure how to reproduce. When I create a new project using “flutter create” everything seems to work fine and IntelliJ is able to pick up that the project is using Gradle.
I did a diff of the android/ folders on the newly created test project and my old project (the one complaining) and most files were identical. In the files that were not, I didn’t see anything that was not related to changes I’ve made myself (like app class name etc.) but I may have overlooked something of course.
Version info
flutter doctor:
[✓] Flutter (on Mac OS X 10.12.6 16G29, locale en-NO, channel alpha)
• Flutter at /Users/bjorn/bin/flutter
• Framework revision 701d534ba9 (8 days ago), 2017-09-12 14:01:51 -0700
• Engine revision 31d03de019
• Tools Dart version 1.25.0-dev.11.0
[✓] Android toolchain - develop for Android devices (Android SDK 26.0.1)
• Android SDK at /Users/bjorn/Library/Android/sdk
• Platform android-26, build-tools 26.0.1
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
[✓] iOS toolchain - develop for iOS devices (Xcode 8.3.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 8.3.3, Build version 8E3004b
• ios-deploy 1.9.2
• CocoaPods version 1.3.1
[✓] Android Studio (version 2.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
[✓] IntelliJ IDEA Ultimate Edition (version 2017.2.4)
• Flutter plugin version 17.0
• Dart plugin version 172.4155.35
adb not responding
IntelliJ version:
IntelliJ IDEA 2017.2.4
Build #IU-172.4155.36, built on September 11, 2017
Licensed to IntelliJ IDEA Evaluator
Expiration date: September 27, 2017
JRE: 1.8.0_152-release-915-b11 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.12.6
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (7 by maintainers)
Top GitHub Comments
Yes, it’s harmless (and can be disabled in IntelliJ’s notification settings).
Thanks for the report! We do see this issue as well; totally agree that a newly created project shouldn’t warn.