Unimplemented handling of missing static target

241 views
Skip to first unread message

JaeHo Song

unread,
Jan 4, 2022, 9:51:56 AM1/4/22
to Flutter Development (flutter-dev)
Please give me some hint how I can solve this issue.

This issue only happens on hot restart (NOT hot reload).

_CompileTimeError was thrown building ... Unimplemented handling of missing static target


2022-01-04_22-47-47-issue.jpg

I am using GetX controller and the following "flutter doctor -v"

```

$ flutter doctor -v

[✓] Flutter (Channel stable, 2.8.1, on macOS 12.0.1 21A559 darwin-x64, locale en-PH)

    Flutter version 2.8.1 at /Users/thruthesky/bin/flutter

    Upstream repository https://github.com/flutter/flutter.git

    Framework revision 77d935af4d (3 weeks ago), 2021-12-16 08:37:33 -0800

    Engine revision 890a5fca2e

    Dart version 2.15.1


[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)

    Android SDK at /Users/thruthesky/Library/Android/sdk

    Platform android-31, build-tools 30.0.3

    ANDROID_HOME = /Users/thruthesky/Library/Android/sdk

    Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java

    Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

    All Android licenses accepted.


[✓] Xcode - develop for iOS and macOS (Xcode 13.1)

    Xcode at /Applications/Xcode.app/Contents/Developer

    CocoaPods version 1.11.2


[✓] Android Studio (version 3.5)

    Android Studio at /Applications/Android Studio.app/Contents

    Flutter plugin version 42.1.1

    Dart plugin version 191.8593

    Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)


[✓] VS Code (version 1.63.2)

    VS Code at /Applications/Visual Studio Code.app/Contents

    Flutter extension version 3.32.0


[✓] Connected device (2 available)

    iPhone11MaxPro (mobile)    • 00008030-000904C80290802E            • ios • iOS 14.5 18E199

    iPhone 12 Pro Max (mobile) • 73D8111E-D521-401E-A956-A9E687CD8679 • ios •

      com.apple.CoreSimulator.SimRuntime.iOS-15-0 (simulator)


• No issues found!

```

It was okay yesterday, and suddenly this issue occurred.

I am looking for advices.

Thank you.


JaeHo Song

unread,
Jan 5, 2022, 4:29:43 AM1/5/22
to Flutter Development (flutter-dev)
I fixed this issue by adjusting import path.

One widget is importing source file directly like `import ../../packages/abc/lib/abc.dart`, while other widget is importing like `import package:abc/abc.dart`.
Reply all
Reply to author
Forward
0 new messages