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.

Cannot find declaration to go to

See original GitHub issue

Thanks for the feedback! If your issue is related to the Flutter framework itself, please open an issue at github.com/flutter/flutter.

Steps to Reproduce

When Ctrl + Click ,ide shows : Cannot find declaration to go to image

Version info

Please paste the output of running flutter doctor -v here (available from the command line or from Tools > Flutter > Flutter Doctor). It will provide the version of the Flutter framework as well as of the IntelliJ plugin.

[√] Flutter (Channel dev, v0.5.5, on Microsoft Windows [Version 10.0.16299.15], locale zh-CN)
    • Flutter version 0.5.5 at D:\FlutterSDK\flutter
    • Framework revision 020e0ef55c (8 days ago), 2018-06-14 13:17:08 -0700
    • Engine revision c3976b3c71
    • Dart version 2.0.0-dev.61.0.flutter-c95617b19c

[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at D:\AndroidSDK
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.3
    • ANDROID_HOME = D:\AndroidSDK
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
    • All Android licenses accepted.

[√] Android Studio (version 3.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 23.2.1
    • Dart plugin version 171.4424
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)

[√] IntelliJ IDEA Ultimate Edition (version 2018.1)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2018.1
    • Flutter plugin version 25.0.2
    • Dart plugin version 181.4203.498

[√] Connected devices (1 available)
    • G8142 • CB512EEZUJ • android-arm64 • Android 8.0.0 (API 26)

• No issues found!

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:20 (2 by maintainers)

github_iconTop GitHub Comments

25reactions
aolosecommented, Jun 22, 2018

emmm… I think I solve it.

  • 1.close your project
  • 2.delete .idea folder and *.iml files in root path
  • 3.open your project

and then i found the *.iml not generated again.

10reactions
devoncarewcommented, Apr 15, 2019

For people seeing this issue, I would:

  • ensure that a flutter sdk is configured in the settings, Language & Frameworks > Flutter page
  • try the File > Invalidate caches menu item
Read more comments on GitHub >

github_iconTop Results From Across the Web

IntelliJ cannot find any declarations - Stack Overflow
- File>Project Structure. - Under Project Settings go to Modules. Here you should see the different project folders, for me it was not...
Read more >
I am getting 'Cannot find declaration to go to' warning
go to WebStorm Default IDE directories (C:\Users\JohnS\AppData\Roaming\JetBrains). delete all files in this folder. reopen WebStorm. WARNING: ...
Read more >
Cannot find declaration to go to, Nothing here, Java file ...
Open installed Plugins (press Shift key twice) and disable Gradle and restart IntelliJ, you will be prompted to enable Gradle, once dependencies ...
Read more >
What if "Cannot find declaration to go to"? - My Knowledge Base
Why can't I ssh to github or bitbucket? Investment · Chinese Stock Market ... What if "Cannot find declaration to go to"? Try...
Read more >
PhpStorm: Undefined class 'Route' (Cannot find declaration to ...
I have many "Undefined ...." with PhpStorm in fresh installations. Undefined class 'Route' (Cannot find declaration to go to) Undefined namespace 'Facades' ...
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