question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

after upgrading IntelliJ displays a "Migrate Project to Gradle?" notification

See original GitHub issue

After 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:closed
  • Created 6 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
devoncarewcommented, Jan 2, 2018

Sorry for the noob question but bottom line: I have to ignore that warning till this is fixed. Right?

Yes, it’s harmless (and can be disabled in IntelliJ’s notification settings).

2reactions
devoncarewcommented, Sep 21, 2017

Thanks for the report! We do see this issue as well; totally agree that a newly created project shouldn’t warn.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gradle | IntelliJ IDEA Documentation - JetBrains
gradle file, IntelliJ IDEA recognizes the Gradle build script and displays a notification suggesting to load the project as Gradle. After you ...
Read more >
Can't migrate project to Gradle in Android Studio
After I've opened the project in Android Studio I got the message: Migrate Project to Gradle? This project does not use the Gradle...
Read more >
Upgrading your build from Gradle 6.x to the latest
Run gradle wrapper --gradle-version 7.0 to update the project to 7.0. ... Gradle will automatically clean up previous lock files when migrating them...
Read more >
Use the Android Gradle plugin Upgrade Assistant
The Android Gradle plugin (AGP) Upgrade Assistant is a tool in Android Studio that helps you upgrade the version of AGP used by...
Read more >
CUBA Studio User Guide
Update Only - Studio generates update database migration scripts and ... Additionally, after the project is opened, notification about ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found